Skip to content

Commit 48656b1

Browse files
committed
Update test workflow
1 parent 0d37981 commit 48656b1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/lint-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
6969
- name: Test the mocked API endpoints with pytest
7070
run: |
71-
pytest --only-mocked --overwrite-environ -v
71+
pytest --only-mocked --overwrite-environ -v --junitxml=junit.xml -o junit_family=legacy
7272
7373
- name: Test with pytest without mocking API enpoints
7474
env:
@@ -85,11 +85,17 @@ jobs:
8585

8686
TEST_CLASHOFCODE_PUBLIC_HANDLE: ${{ secrets.TEST_CLASHOFCODE_PUBLIC_HANDLE }}
8787
run: |
88-
pytest --no-mocking --cov-append -v
88+
pytest --no-mocking --cov-append -v --junitxml=junit.xml -o junit_family=legacy
8989
9090
- name: Upload coverage to Codecov
9191
uses: codecov/codecov-action@v4
9292
with:
9393
fail_ci_if_error: true
9494
env:
9595
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
96+
97+
- name: Upload test results to Codecov
98+
if: ${{ !cancelled() }}
99+
uses: codecov/test-results-action@v1
100+
with:
101+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)