Skip to content

Commit

Permalink
use codecov action v4
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienWehrle committed Nov 23, 2024
1 parent d51351c commit cce6f1a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,17 @@ jobs:
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
pytest --cov --junitxml=junit.xml -o junit_family=legacy
env:
SH_CLIENT_ID: ${{ secrets.SH_CLIENT_ID }}
SH_CLIENT_SECRET: ${{ secrets.SH_CLIENT_SECRET }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
directory: ./coverage/reports/
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true


- name: Run Snyk to check for vulnerabilities
run: |
pip install -r dev-requirements.txt
Expand Down

0 comments on commit cce6f1a

Please sign in to comment.