Skip to content

Commit dd475ff

Browse files
authored
ci: Add foresight test analysis (#243)
1 parent 8c2e1f9 commit dd475ff

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/nightly-workflow.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
3535
python-version: ['3.7', '3.8', '3.9', '3.10']
3636
steps:
37+
- name: Collect Workflow Telemetry
38+
uses: runforesight/foresight-workflow-kit-action@v1
39+
if: ${{ always() }}
40+
3741
- name: Check out code
3842
uses: actions/checkout@v2
3943
with:
@@ -77,7 +81,20 @@ jobs:
7781
ACCOUNT_NAME: "firebolt"
7882
API_ENDPOINT: "api.staging.firebolt.io"
7983
run: |
80-
pytest --timeout_method "thread" -o log_cli=true -o log_cli_level=INFO tests/integration
84+
pytest --timeout_method "thread" -o log_cli=true -o log_cli_level=INFO --junit-xml=report/junit.xml tests/integration
85+
86+
- name: Foresight Test / Coverage Results
87+
uses: runforesight/foresight-test-kit-action@v1
88+
if: success() || failure()
89+
with:
90+
test_format: JUNIT
91+
test_framework: PYTEST
92+
test_path: ./report/
93+
tags: |
94+
type:"Nightly"
95+
os:${{ matrix.os }}
96+
python:${{ matrix.python-version }}
97+
language:"Python"
8198
8299
- name: Slack Notify of failure
83100
if: failure()

0 commit comments

Comments
 (0)