Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3a47ad

Browse files
committed
update pypy ci specifier
1 parent 2864588 commit f3a47ad

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@ jobs:
1919
matrix:
2020
os: [Ubuntu, Windows, macOS]
2121
python_version:
22-
["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
23-
exclude:
24-
# This is failing due to pip not being in the virtual environment.
25-
# https://github.com/pypa/packaging/runs/424785871#step:7:9
26-
- os: windows
27-
python_version: pypy3
22+
["3.6", "3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
2823

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

4944
# Binary is named 'pypy', but setup-python specifies it as 'pypy2'.
5045
- name: Run nox for pypy2
5146
run: |
5247
python -m nox --error-on-missing-interpreters -s tests-pypy
5348
shell: bash
5449
if: matrix.python_version == 'pypy2'
50+
51+
# Binary is named 'pypy3.7', but setup-python specifies it as 'pypy-3.7'.
52+
- name: Run nox for pypy3
53+
run: |
54+
python -m nox --error-on-missing-interpreters -s tests-pypy3.7
55+
shell: bash
56+
if: matrix.python_version == 'pypy-3.7'

docs/development/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ each supported Python version and run the tests. For example:
3434
nox > * tests-3.7: success
3535
nox > * tests-3.8: success
3636
nox > * tests-3.9: success
37-
nox > * tests-pypy3: skipped
37+
nox > * tests-pypy3.7: skipped
3838
3939
You may not have all the required Python versions installed, in which case you
4040
will see one or more ``InterpreterNotFound`` errors.

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
nox.options.reuse_existing_virtualenvs = True
2222

2323

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

0 commit comments

Comments
 (0)