Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
id-token: write
statuses: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -15,12 +16,15 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests and collect coverage
run: pytest --cov app --junitxml=junit.xml -o junit_family=legacy
run: |
pytest --cov app --junitxml=junit.xml -o junit_family=legacy
coverage xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
uses: codecov/codecov-action@main
with:
token: ${{ secrets.CODECOV_TOKEN }}
report_type: test_results
- name: Upload coverage to Codecov (arg token)
uses: codecov/codecov-action@main
with:
Expand All @@ -45,3 +49,7 @@ jobs:
fail_ci_if_error: true
use_oidc: true
verbose: true
- name: Try local upload
uses: getsentry/codecov-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
Loading