Skip to content

Commit badc0cc

Browse files
mayeuthrnciar
authored andcommitted
Update CI test workflow to use setup-python@v4 (pypa#556)
`setup-python` now allows to specify `pypyX.Y` which allows to simplify the workflow.
1 parent 3bbaa9d commit badc0cc

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,16 @@ jobs:
2323
matrix:
2424
os: [Ubuntu, Windows, macOS]
2525
python_version:
26-
["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8", "pypy-3.9"]
26+
["3.7", "3.8", "3.9", "3.10", "pypy3.7", "pypy3.8", "pypy3.9"]
2727

2828
steps:
2929
- uses: actions/checkout@v1
3030

31-
- uses: actions/setup-python@v3
31+
- uses: actions/setup-python@v4
3232
name: Install Python ${{ matrix.python_version }}
3333
with:
3434
python-version: ${{ matrix.python_version }}
3535
cache: "pip"
3636

3737
- name: Run nox
38-
run: |
39-
# Need to fix-up PyPy. This can be removed once https://github.com/actions/setup-python/issues/346 lands.
40-
INTERPRETER=${{ matrix.python_version }}
41-
INTERPRETER=${INTERPRETER/-/} # remove the first '-' in "pypy-X.Y" -> "pypyX.Y" to match executable name
42-
pipx run nox --error-on-missing-interpreters -s tests-${INTERPRETER}
43-
shell: bash
38+
run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}

0 commit comments

Comments
 (0)