Skip to content

Commit

Permalink
Update set of tox environments. Use a better testrunner.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Dec 6, 2024
1 parent dd52edc commit 0c6851b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U coverage
python -m pip install -U coverage zope.testrunner
python -m pip install -U -e ".[test]"
- name: Test
run: |
coverage run -m unittest discover -s src
coverage run -m zope.testrunner --test-path=src
- name: Lint
if: matrix.python-version == '3.12'
run: |
Expand Down
18 changes: 4 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
[tox]
envlist=py27,py27-old,py36,py37,py38,py39,pypy,doc,coverage
envlist=py38,py39,310,311,312,313,pypy3,doc

[testenv]
usedevelop = true
usedevelop = false
extras =
test
deps =
pylint
coverage
old: Sphinx == 1.7.0
zope.testrunner
commands =
coverage run -p -m unittest discover -s src
pylint -r no src/sphinxcontrib
coverage run -p -m zope.testrunner --test-path=src
passenv = HOME

[testenv:coverage]
commands =
coverage combine
coverage html -i
coverage report -i --fail-under=100
depends = py27, py27-old, py36, py37, py38, py39, pypy
parallel_show_output = true

[testenv:doc]
commands =
sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees doc {envtmpdir}/linkcheck
Expand Down

0 comments on commit 0c6851b

Please sign in to comment.