Skip to content

Commit 7658172

Browse files
committed
github/workflows: upload test results to codecov
Signed-off-by: Jan Luebbe <[email protected]>
1 parent 89c13b8 commit 7658172

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/reusable-unit-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,18 @@ jobs:
5858
ruff format --check --diff
5959
- name: Test with pytest
6060
run: |
61-
pytest -r a --cov-config .coveragerc --cov=labgrid --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"
61+
pytest -r a --cov-config .coveragerc --cov=labgrid --junitxml=junit.xml -o junit_family=legacy --local-sshmanager --ssh-username runner -k "not test_docker_with_daemon"
6262
- name: Upload coverage to Codecov
6363
uses: codecov/codecov-action@v4
6464
with:
6565
token: ${{ secrets.CODECOV_TOKEN }}
6666
flags: ${{ inputs.python-version }}
67+
- name: Upload test results to Codecov
68+
if: ${{ !cancelled() }}
69+
uses: codecov/test-results-action@v1
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
72+
flags: ${{ inputs.python-version }}
6773
- name: Build documentation
6874
run: |
6975
make -C doc clean

0 commit comments

Comments
 (0)