Skip to content

Commit 98b4a62

Browse files
authored
upload tests results to codecov (#11)
2 parents 57ec048 + 747f1ad commit 98b4a62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,18 @@ jobs:
4949
- name: Install dependencies
5050
run: uv sync --group=test
5151
- name: Run pytest
52-
run: uv run pytest --cov=teufa --cov-report=xml tests/
52+
run: uv run pytest --cov=teufa --cov-report=xml --junitxml=junit.xml --override-ini=junit_family=legacy tests/
5353
env:
5454
DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
5555
- name: Upload coverage reports to Codecov
5656
uses: codecov/[email protected]
5757
with:
5858
token: ${{ secrets.CODECOV_TOKEN }}
59+
- name: Upload test results to Codecov
60+
if: ${{ !cancelled() }}
61+
uses: codecov/test-results-action@v1
62+
with:
63+
token: ${{ secrets.CODECOV_TOKEN }}
5964
build:
6065
name: Build and push image
6166
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)