Skip to content

Commit 39eff9b

Browse files
hugovkhukkin
andauthored
Add support for Python 3.12, drop EOL 3.7 (#224)
* Bump GitHub Actions * Add support for Python 3.12, drop EOL 3.7 * Update .github/workflows/tests.yaml --------- Co-authored-by: Taneli Hukkinen <[email protected]>
1 parent 0054e60 commit 39eff9b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/tests.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v4
1818
with:
1919
python-version: '3.8'
2020

@@ -32,15 +32,15 @@ jobs:
3232
runs-on: ${{ matrix.os }}
3333
strategy:
3434
matrix:
35-
python-version: ['pypy-3.7', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev']
35+
python-version: ['pypy3.10', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
3636
os: [ubuntu-latest, macos-latest, windows-latest]
37-
continue-on-error: ${{ matrix.python-version == '3.12-dev' }}
37+
continue-on-error: ${{ matrix.python-version == '3.13-dev' }}
3838

3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141

4242
- name: Set up Python ${{ matrix.python-version }}
43-
uses: actions/setup-python@v3
43+
uses: actions/setup-python@v4
4444
with:
4545
python-version: ${{ matrix.python-version }}
4646

@@ -55,10 +55,10 @@ jobs:
5555
coverage:
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@v3
59-
- uses: actions/setup-python@v3
58+
- uses: actions/checkout@v4
59+
- uses: actions/setup-python@v4
6060
with:
61-
python-version: '3.10'
61+
python-version: '3.x'
6262
- name: Install package and coverage deps
6363
run: |
6464
pip install . coverage
@@ -70,7 +70,7 @@ jobs:
7070
coverage run -m unittest
7171
coverage report --fail-under=100
7272
- name: Report coverage
73-
uses: codecov/codecov-action@v2
73+
uses: codecov/codecov-action@v3
7474

7575
allgood:
7676
runs-on: ubuntu-latest
@@ -87,10 +87,10 @@ jobs:
8787
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
8888
runs-on: ubuntu-latest
8989
steps:
90-
- uses: actions/checkout@v3
91-
- uses: actions/setup-python@v3
90+
- uses: actions/checkout@v4
91+
- uses: actions/setup-python@v4
9292
with:
93-
python-version: '3.7'
93+
python-version: '3.x'
9494
- name: Install build and publish tools
9595
run: |
9696
pip install build twine

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
{ name = "Taneli Hukkinen", email = "[email protected]" },
1111
]
1212
license = { file = "LICENSE" }
13-
requires-python = ">=3.7"
13+
requires-python = ">=3.8"
1414
readme = "README.md"
1515
classifiers = [
1616
"License :: OSI Approved :: MIT License",
@@ -47,10 +47,10 @@ profile = "black"
4747
legacy_tox_ini = '''
4848
[tox]
4949
# Only run unittest envs when no args given to tox
50-
envlist = py{37,38,39,310,311}
50+
envlist = py{38,39,310,311,312}
5151
isolated_build = True
5252
53-
[testenv:py{37,38,39,310,311}]
53+
[testenv:py{38,39,310,311,312}]
5454
description = run tests against a built package
5555
commands =
5656
python -m unittest {posargs}

0 commit comments

Comments
 (0)