Skip to content

Commit

Permalink
update pypy ci specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 14, 2021
1 parent 2864588 commit 1a335cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yml
Expand Up @@ -19,12 +19,7 @@ jobs:
matrix:
os: [Ubuntu, Windows, macOS]
python_version:
["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
exclude:
# This is failing due to pip not being in the virtual environment.
# https://github.com/pypa/packaging/runs/424785871#step:7:9
- os: windows
python_version: pypy3
["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.7"]

steps:
- uses: actions/checkout@v1
Expand All @@ -44,11 +39,18 @@ jobs:
run: |
python -m nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
shell: bash
if: matrix.python_version != 'pypy2'
if: ${{ ! matrix.python_version.startsWith('pypy')' }}

# Binary is named 'pypy', but setup-python specifies it as 'pypy2'.
- name: Run nox for pypy2
run: |
python -m nox --error-on-missing-interpreters -s tests-pypy
shell: bash
if: matrix.python_version == 'pypy2'

# Binary is named 'pypy3.7', but setup-python specifies it as 'pypy-3.7'.
- name: Run nox for pypy3
run: |
python -m nox --error-on-missing-interpreters -s tests-pypy3.7
shell: bash
if: matrix.python_version == 'pypy-3.7'
2 changes: 1 addition & 1 deletion docs/development/getting-started.rst
Expand Up @@ -34,7 +34,7 @@ each supported Python version and run the tests. For example:
nox > * tests-3.7: success
nox > * tests-3.8: success
nox > * tests-3.9: success
nox > * tests-pypy3: skipped
nox > * tests-pypy3.7: skipped
You may not have all the required Python versions installed, in which case you
will see one or more ``InterpreterNotFound`` errors.
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -21,7 +21,7 @@
nox.options.reuse_existing_virtualenvs = True


@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"])
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3.7"])
def tests(session):
def coverage(*args):
session.run("python", "-m", "coverage", *args)
Expand Down

0 comments on commit 1a335cf

Please sign in to comment.