upload tests results to codecov
This commit is contained in:
parent
57ec048a4d
commit
747f1adeb6
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -49,13 +49,18 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: uv sync --group=test
|
||||
- name: Run pytest
|
||||
run: uv run pytest --cov=teufa --cov-report=xml tests/
|
||||
run: uv run pytest --cov=teufa --cov-report=xml --junitxml=junit.xml --override-ini=junit_family=legacy tests/
|
||||
env:
|
||||
DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v4.4.1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/test-results-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
build:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user