Skip to content

Commit

Permalink
Configure and run code coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-myome committed Sep 18, 2023
1 parent f8e86ff commit e35d6ab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ jobs:
test:
runs-on: ubuntu-latest

with:
# =============
# PLEASE NOTE:
# Codecov.io tokens are repo-specific
# =============
# This token is specific to the biocommons/example repo
# Repos deriving from this one must provision & use their own token
codecov_token: "abc-123"

strategy:
fail-fast: false
matrix:
Expand All @@ -68,6 +77,19 @@ jobs:
- name: Test with pytest
run: |
make test
- name: Upload coverage data to Codecov
run: |
# Verify integrity of codecov download
curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
# Upload coverage report
chmod +x codecov
./codecov
deploy:
needs:
Expand Down

0 comments on commit e35d6ab

Please sign in to comment.