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

chore: test with PyPy 3.8 & 3.9 #512

Merged
merged 3 commits into from Mar 2, 2022
Merged
Changes from 2 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
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
os: [Ubuntu, Windows, macOS]
python_version:
["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8", "pypy-3.9"]

steps:
- uses: actions/checkout@v1
Expand All @@ -39,22 +39,24 @@ jobs:
python -m pip install nox
shell: bash

- name: Run nox
- name: Fix-up PyPy 3.9 executable
brettcannon marked this conversation as resolved.
Show resolved Hide resolved
run: |
python -m nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
cd $(dirname $(which python))
if [ ! -f pypy3.exe ]; then
ln -s python.exe pypy3.exe
fi
shell: bash
if: ${{ ! startsWith( matrix.python_version, 'pypy' ) }}
if: ${{ (matrix.os == 'Windows') && (matrix.python_version == 'pypy-3.9') }}

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

# Binary is named 'pypy3', but setup-python specifies it as 'pypy-3.7'.
# Binary is named 'pypy3', but setup-python specifies it as 'pypy-3.x'.
- name: Run nox for pypy3
run: |
python -m nox --error-on-missing-interpreters -s tests-pypy3
shell: bash
if: matrix.python_version == 'pypy-3.7'
if: ${{ startsWith( matrix.python_version, 'pypy' ) }}