upload tests results to codecov (#11)
This commit is contained in:
commit
98b4a6211f
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -49,13 +49,18 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: uv sync --group=test
|
run: uv sync --group=test
|
||||||
- name: Run pytest
|
- 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:
|
env:
|
||||||
DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
|
DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v4.4.1
|
uses: codecov/codecov-action@v4.4.1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
- name: Upload test results to Codecov
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: codecov/test-results-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
build:
|
build:
|
||||||
name: Build and push image
|
name: Build and push image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user