Skip to content

Commit

Permalink
Drop testing for PyPy3.6, add PyPy3.9 (#359)
Browse files Browse the repository at this point in the history
* Drop testing for PyPy3.6, add PyPy3.9

Also force coverage version, and add comment about why coverage for PyPy3.8
is not done.

* Add PyPy versions to listed envnames

* Change example to use py37
  • Loading branch information
pepoluan authored Dec 29, 2022
1 parent fadafa8 commit 057474e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/unit-testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,8 @@ jobs:
# If a matrix fail, do NOT stop other matrix, let them run to completion
fail-fast: false
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.6", "pypy3.7", "pypy3.8" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7", "pypy3.8", "pypy3.9" ]
os: [ "macos-11", "macos-12", "ubuntu-18.04", "ubuntu-20.04", "ubuntu-22.04", "windows-2019", "windows-2022" ]
exclude:
- os: windows-2019
python-version: pypy3.6
- os: windows-2022
python-version: pypy3.6
- os: macos-11
python-version: pypy3.6
- os: macos-12
python-version: pypy3.6
runs-on: ${{ matrix.os }}
timeout-minutes: 15 # Slowest so far is pypy3 on MacOS, taking almost 7m
steps:
Expand All @@ -117,7 +108,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
# Test deps
pip install colorama coverage[toml] "coverage-conditional-plugin>=0.5.0" packaging pytest pytest-cov pytest-mock
pip install colorama "coverage>=7.0.1" coverage[toml] "coverage-conditional-plugin>=0.5.0" packaging pytest pytest-cov pytest-mock
# Package deps
python setup.py develop
- name: "Security checking"
Expand All @@ -128,6 +119,8 @@ jobs:
# IMPORTANT: pypy3.8 is currently excluded from coverage testing because coverage seems to be unstable when
# running on PyPy 3.8. This is still under investigation (See issue #325)
# Edit: This is due to change in behavior in PyPy v7.3.10, and coverage.py needs to adapt.
# See: https://github.com/nedbat/coveragepy/issues/1515

- name: "Execute testing with coverage"
if: matrix.python-version != 'pypy3.8'
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ option::

You can also add the ``-s``/``--capture=no`` option to show output, e.g.::

$ tox -e py36-nocov -- -s
$ tox -e py37-nocov -- -s

and these options can be combined::

$ tox -e py36-nocov -- -x -s <testname>
$ tox -e py37-nocov -- -x -s <testname>

(The ``-e`` parameter is explained in the next section about 'testenvs'.
In general, you'll want to choose the ``nocov`` testenvs if you want to show output,
Expand All @@ -173,7 +173,7 @@ In general, the ``-e`` parameter to tox specifies one (or more) **testenv**
to run (separate using comma if more than one testenv). The following testenvs
have been configured and tested:

* ``{py37,py38,py39,py310,py311,pypy3}-{nocov,cov,diffcov,profile}``
* ``{py37,py38,py39,py310,py311,pypy3,pypy37,pypy38,pypy39}-{nocov,cov,diffcov,profile}``

Specifies the interpreter to run and the kind of testing to perform.

Expand Down

0 comments on commit 057474e

Please sign in to comment.