Skip to content

Commit

Permalink
Merge pull request #365 from Pylons/fixup/special-case-pypy-in-ci
Browse files Browse the repository at this point in the history
Special case PyPy in CI to avoid running with coverage
  • Loading branch information
digitalresistor committed Feb 7, 2022
2 parents 759f4d1 + 275d900 commit af6ac55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
architecture:
- x64
- x86
include:
- py: "pypy-3.8"
toxenv: "pypy38"
exclude:
# Linux and macOS don't have x86 python
- os: "ubuntu-latest"
Expand All @@ -46,8 +49,15 @@ jobs:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
- name: Running tox with specific toxenv
if: ${{ matrix.toxenv != '' }}
env:
TOXENV: ${{ matrix.toxenv }}
run: tox
- name: Running tox for current python version
if: ${{ matrix.toxenv == '' }}
run: tox -e py

coverage:
runs-on: ubuntu-latest
name: Validate coverage
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
lint,
py37,py38,py39,py310,pypy3,
py37,py38,py39,py310,pypy38,
coverage,
docs
isolated_build = True
Expand All @@ -10,7 +10,7 @@ isolated_build = True
commands =
python --version
python -mpytest \
pypy3: --no-cov \
pypy38: --no-cov \
{posargs:}
extras =
testing
Expand Down

0 comments on commit af6ac55

Please sign in to comment.