Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Mar 15, 2022
1 parent 17e6b66 commit 26d0fe4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ jobs:
- "pyramid20"
- "pyramid110-jinja2legacy"
- "pyramid20-jinja2legacy"
name: "Python: py39-${{ matrix.pyramid }}"
name: "Python: py310-${{ matrix.pyramid }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.9"
python-version: "3.10"
architecture: x64
- run: pip install tox
- name: Running tox
run: tox -e py39-${{ matrix.pyramid }}
run: tox -e py310-${{ matrix.pyramid }}
coverage:
runs-on: ubuntu-latest
name: Validate coverage
Expand All @@ -84,7 +84,7 @@ jobs:
architecture: x64

- run: pip install tox
- run: tox -e py310-cover,coverage
- run: tox -e py310,py310-jinja2legacy,coverage
docs:
runs-on: ubuntu-latest
name: Build the documentation
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ python_files = test_*.py
testpaths =
demo
tests
addopts = -W always
addopts = -W always --cov
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ envlist =
lint,
py37,py38,py39,py310,pypy3,
py39-pyramid{13,14,15,16,17,18,110,20},
py310-cover,coverage,
py39-jinja2legacy,
coverage,
docs

[testenv]
Expand All @@ -27,11 +28,6 @@ extras =
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:py310-cover]
commands =
python --version
pytest --cov {posargs:}

[testenv:coverage]
commands =
coverage combine
Expand All @@ -41,7 +37,6 @@ deps =
coverage
setenv =
COVERAGE_FILE=.coverage
depends = py310-cover

[testenv:docs]
whitelist_externals = make
Expand Down

0 comments on commit 26d0fe4

Please sign in to comment.