Skip to content

Commit

Permalink
ci: Test on PyPy 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jun 6, 2023
1 parent 8924053 commit 9ac9d57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
{%- if cookiecutter.os_independent == "y" %}
os: [macos-latest, windows-latest, ubuntu-latest]
{%- endif %}
python-version: [3.7, 3.8, 3.9, '3.10', '3.11'{% if cookiecutter.pypy == "y" %}, pypy-3.7{% endif %}]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11'{% if cookiecutter.pypy == "y" %}, pypy-3.9{% endif %}]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
6 changes: 3 additions & 3 deletions docs/python/ci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ If using `tox <http://tox.readthedocs.org>`__:

.. note::

Do not use ``tox`` to test multiple Python versions. Use the `matrix <https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix>`__ in GitHub Actions, instead. This makes it easier to install version-specific dependencies (like ``libxml2-dev`` for PyPy), and it makes exclusions more visible (like pypy-3.7 on Windows).
Do not use ``tox`` to test multiple Python versions. Use the `matrix <https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix>`__ in GitHub Actions, instead. This makes it easier to install version-specific dependencies (like ``libxml2-dev`` for PyPy), and it makes exclusions more visible (like pypy-3.9 on Windows).

If not using ``tox``, use this template, replacing ``{{ cookiecutter.package_name }}`` and removing the Jinja syntax if not using the :doc:`Cookiecutter template<packages>`:

Expand All @@ -206,15 +206,15 @@ If the package has optional support for `orjson <https://pypi.org/project/orjson
.. code-block:: yaml
# "orjson does not support PyPy" and fails to install. https://pypi.org/project/orjson/
- if: matrix.python-version != 'pypy-3.7'
- if: matrix.python-version != 'pypy-3.9'
name: Test
shell: bash
run: |
coverage run --append --source=PACKAGENAME -m pytest
pip install orjson
coverage run --append --source=PACKAGENAME -m pytest
pip uninstall -y orjson
- if: matrix.python-version == 'pypy-3.7'
- if: matrix.python-version == 'pypy-3.9'
name: Test
run: pytest --cov PACKAGENAME
Expand Down
2 changes: 1 addition & 1 deletion docs/python/samples/ci/package-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', pypy-3.7]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', pypy-3.9]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down

0 comments on commit 9ac9d57

Please sign in to comment.