Skip to content

Commit

Permalink
Switched to using coverage v7+
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Aug 18, 2023
1 parent c637720 commit 4535365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: pip install -e .[test] coveralls coverage[toml]
run: pip install -e .[test]
- name: Test with pytest
run: coverage run -m pytest
- name: Upload Coverage
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Documentation = "https://typeguard.readthedocs.io/en/latest/"

[project.optional-dependencies]
test = [
"coverage[toml] >= 7",
"pytest >= 7",
'mypy >= 1.2.0; python_implementation != "PyPy"',
]
Expand Down Expand Up @@ -101,9 +102,11 @@ minversion = 4.0
[testenv]
extras = test
commands = python -m pytest {posargs}
commands = coverage run -p -m pytest {posargs}
package = editable
[testenv:docs]
extras = doc
package = editable
commands = sphinx-build -W -n docs build/sphinx
"""

0 comments on commit 4535365

Please sign in to comment.