Skip to content

Commit 342501f

Browse files
authored
add support for 3.11 and pypy (#68)
1 parent b889b07 commit 342501f

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717

1818
jobs:
1919
tests:
20+
timeout-minutes: 10
2021
runs-on: ubuntu-latest
2122
strategy:
2223
matrix:
@@ -33,6 +34,8 @@ jobs:
3334

3435
- name: Setup nox
3536
uses: wntrblm/[email protected]
37+
with:
38+
python-versions: "3.8, 3.9, 3.10, 3.11-dev, pypy-3.8, pypy-3.9"
3639

3740
- name: Generate template via cruft
3841
run: |

{{cookiecutter.project_name}}/.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
matrix:
2323
os: [ubuntu-20.04, windows-latest, macos-latest]
2424
pyv: ['3.8', '3.9', '3.10']
25+
include:
26+
- {os: ubuntu-latest, pyv: 'pypy3.8'}
27+
- {os: ubuntu-latest, pyv: '3.11.0-rc - 3.11', nox_pyv: '3.11'}
2528

2629
steps:
2730
- name: Check out the repository
@@ -41,10 +44,11 @@ jobs:
4144
nox --version
4245
4346
- name: Lint code and check dependencies
47+
continue-on-error: {% raw %}${{ matrix.nox_pyv == '3.11' }}{% endraw %}
4448
run: nox -s lint safety
4549

4650
- name: Run tests
47-
run: nox -s tests-{% raw %}${{ matrix.pyv }}{% endraw %} -- --cov-report=xml
51+
run: nox -s tests-{% raw %}${{ matrix.nox_pyv || matrix.pyv }}{% endraw %} -- --cov-report=xml
4852

4953
- name: Upload coverage report
5054
uses: codecov/[email protected]

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def docs(session: nox.Session) -> None:
1717

1818

1919
{% endif -%}
20-
@nox.session(python=["3.8", "3.9", "3.10"])
20+
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9"])
2121
def tests(session: nox.Session) -> None:
2222
session.install(".[tests]")
2323
session.run(

{{cookiecutter.project_name}}/setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers =
1414
Programming Language :: Python :: 3.8
1515
Programming Language :: Python :: 3.9
1616
Programming Language :: Python :: 3.10
17+
Programming Language :: Python :: 3.11
1718
{{cookiecutter.development_status}}
1819

1920
[options]

0 commit comments

Comments
 (0)