Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests with all PyPy versions locally #535

Merged
merged 1 commit into from Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Expand Up @@ -35,10 +35,9 @@ jobs:
cache: "pip"

- name: Run nox
run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
if: ${{ ! startsWith( matrix.python_version, 'pypy' ) }}

# Binary is named 'pypy3', but setup-python specifies it as 'pypy-3.x'.
- name: Run nox for pypy3
run: pipx run nox --error-on-missing-interpreters -s tests-pypy3
if: ${{ startsWith( matrix.python_version, 'pypy' ) }}
run: |
# Need to fix-up PyPy. This can be removed once https://github.com/actions/setup-python/issues/346 lands.
INTERPRETER=${{ matrix.python_version }}
INTERPRETER=${INTERPRETER/-/} # remove the first '-' in "pypy-X.Y" -> "pypyX.Y" to match executable name
pipx run nox --error-on-missing-interpreters -s tests-${INTERPRETER}
shell: bash
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -21,7 +21,7 @@
nox.options.reuse_existing_virtualenvs = True


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