Skip to content

Commit

Permalink
ci: Attempt different coverage configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 7, 2024
1 parent 5f47223 commit 8c0a612
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
scoop install gettext
- run: pip install tox
- run: tox
- run: tox -- coverage run --source=ocdsextensionregistry --append -m pytest
- uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ console_scripts =

[options.extras_require]
test =
coverage
pytest
cli =
Babel
Expand Down
16 changes: 3 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
[tox]
envlist = clean,py-sphinx{5,6,7}
envlist = py-sphinx{5,6,7}

[testenv]
constrain_package_deps = true
extras =
cli
test
commands =
# -W error is not set, as older Sphinx versions can have deprecation warnings from dependencies.
coverage run --source=ocdsextensionregistry --append -m pytest
# -W error is not set, as older Sphinx versions can have deprecation warnings from dependencies.
commands = {posargs:pytest}
deps =
coverage
sphinx5: Sphinx>=5,<6
sphinx6: Sphinx>=6,<7
sphinx7: Sphinx>=7,<8
sphinx{5,6}: docutils<0.19
depends =
py-sphinx{4,5,6}: clean
report: py-sphinx{4,5,6}

[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

0 comments on commit 8c0a612

Please sign in to comment.