Skip to content

Commit

Permalink
Add upload to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Jun 14, 2024
1 parent 99d0a8d commit 2a6dcf8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ jobs:
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
- name: Upload coverage reports to Codecov
if: ${{ matrix.os == 'ubuntu-latest' && env.CODECOV_TOKEN != '' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error \
-t ${{ secrets.CODECOV_TOKEN }} \
-n 'fast'-${{ github.run_id }} \
-F fast -f coverage.xml
- name: Run pytest WITHOUT covarage for fast tests
if: ${{ matrix.os != 'ubuntu-latest'}}
run: pytest -vv -m "not slow" --timeout=60
Expand Down

0 comments on commit 2a6dcf8

Please sign in to comment.