-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Tox into GitHub Actions (#92)
* Integrate Tox into GitHub Actions Closes #91 * Perform coverage checks right after tests. * Add XML format outputs for coverage * Denote architecture in name of tests * Use caching for pip in gh actions
- Loading branch information
1 parent
415612c
commit 93326d2
Showing
5 changed files
with
80 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# IDEA Folder | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[gh] | ||
python = | ||
3.12-dev = py | ||
3.12.0b3 = py3.12.0b3 | ||
3.11 = lint, build, py3.11 | ||
3.10 = py3.10 | ||
3.9 = py3.9 | ||
3.8 = py3.8 | ||
pypy3.10 = pypy3.10 | ||
pypy3.9 = pypy3.9 | ||
pypy3.8 = pypy3.8 | ||
|
||
[tox] | ||
requires = | ||
tox>=4 | ||
env_list = | ||
lint | ||
build | ||
py | ||
py{3.8,3.9,3.10,3.11} | ||
py{3.8,3.9,3.10,3.11}-win32 | ||
py3.12.0b3 | ||
py3.12.0b3-win32 | ||
pypy3.{8,9,10} | ||
coverage | ||
|
||
[testenv] | ||
description = Run Unit Tests | ||
deps = | ||
pytest>=7.3.1 | ||
pytest-cov>=4.0.0 | ||
coverage>=7.2.7 | ||
commands = | ||
pip install -e . | ||
pytest . --cov --cov-report=term-missing -vv --doctest-glob="*.py" | ||
coverage report | ||
coverage xml | ||
|
||
[testenv:lint] | ||
description = Run Linters | ||
deps = | ||
black>=23.3.0 | ||
isort>=5.12.0 | ||
commands = | ||
isort . --check-only | ||
black . --check --verbose | ||
|
||
[testenv:build] | ||
description = Run Build Checks | ||
deps = | ||
build>=0.10.0 | ||
twine>=4.0.2 | ||
commands = | ||
python -m build | ||
twine check dist/* |