Skip to content

Commit

Permalink
fixes coverage gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbhughes committed Mar 1, 2024
1 parent 16a8643 commit 1454a82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ jobs:
- name: Test with pytest
run: |
pip install .
python setup.py pytest --addopts "--cov ."
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# with:
# fail_ci_if_error: true
# verbose: true
coverage run --branch -m pytest tests
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: jmbhughes/overlappogram
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers = [
]

[project.optional-dependencies]
test = ["pytest", "pytest-doctestplus", "pytest-cov", "ruff"]
test = ["pytest", "pytest-doctestplus", "pytest-cov", "ruff", "coverage"]
docs = ["sphinx", "sphinx-automodapi"]

[project.urls]
Expand Down

0 comments on commit 1454a82

Please sign in to comment.