Skip to content

Commit

Permalink
Adding code coverage (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Jul 1, 2024
1 parent b3c32c5 commit a9d3e69
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install flake8 pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install package
run: |
Expand All @@ -45,6 +45,11 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
- name: Test with pytest and coverage
run: |
pytest
pytest --cov=pCRscore
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/

0 comments on commit a9d3e69

Please sign in to comment.