Skip to content

Commit

Permalink
add test results to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0nx committed Nov 3, 2024
1 parent 060264b commit 958d97f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
docker exec -i openhab /openhab/runtime/bin/client -v -p habopen users add admin admin administrator || true
sleep 2
uv run coverage run --omit tests --parallel-mode -m pytest -vv tests
uv run coverage run --omit tests --parallel-mode -m pytest --junitxml=junit.xml -o junit_family=legacy -v tests
- name: Upload coverage data
uses: actions/upload-artifact@v4
Expand All @@ -46,6 +46,12 @@ jobs:
if-no-files-found: error
include-hidden-files: true

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}


coverage:
name: Combine & check coverage.
Expand Down

0 comments on commit 958d97f

Please sign in to comment.