Skip to content

Commit

Permalink
Add codecov upload for forks and main (#54)
Browse files Browse the repository at this point in the history
With codecov v4+ forks are detected automatically and tokenless upload
is used

Signed-off-by: Andrea Waltlova <[email protected]>

Signed-off-by: Andrea Waltlova <[email protected]>
  • Loading branch information
andywaltlova committed Oct 31, 2024
1 parent 23bc3b8 commit f50450c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ jobs:
- name: Install devel dependencies
run: pdm install --dev
- name: Run unit tests
run: pdm run python -m pytest tests/unit --cov=ols --cov=runner --cov-report term-missing
run: pdm run python -m pytest tests/unit --cov=ols --cov=runner --cov-report xml

- name: Upload coverage reports to Codecov with GitHub Action (with token = main repo)
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f50450c

Please sign in to comment.