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

Update CI test workflow to use setup-python@v4 #556

Merged
merged 1 commit into from Jun 9, 2022
Merged
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
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -23,21 +23,16 @@ jobs:
matrix:
os: [Ubuntu, Windows, macOS]
python_version:
["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8", "pypy-3.9"]
["3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9"]

steps:
- uses: actions/checkout@v1

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
name: Install Python ${{ matrix.python_version }}
with:
python-version: ${{ matrix.python_version }}
cache: "pip"

- name: Run nox
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
run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}