Skip to content

Commit

Permalink
Add support for Python 3.12, drop EOL 3.7 (#224)
Browse files Browse the repository at this point in the history
* Bump GitHub Actions

* Add support for Python 3.12, drop EOL 3.7

* Update .github/workflows/tests.yaml

---------

Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
  • Loading branch information
hugovk and hukkin authored Dec 12, 2023
1 parent 0054e60 commit 39eff9b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.8'

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -55,10 +55,10 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.x'
- name: Install package and coverage deps
run: |
pip install . coverage
Expand All @@ -70,7 +70,7 @@ jobs:
coverage run -m unittest
coverage report --fail-under=100
- name: Report coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3

allgood:
runs-on: ubuntu-latest
Expand All @@ -87,10 +87,10 @@ jobs:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.x'
- name: Install build and publish tools
run: |
pip install build twine
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
{ name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" },
]
license = { file = "LICENSE" }
requires-python = ">=3.7"
requires-python = ">=3.8"
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
Expand Down Expand Up @@ -47,10 +47,10 @@ profile = "black"
legacy_tox_ini = '''
[tox]
# Only run unittest envs when no args given to tox
envlist = py{37,38,39,310,311}
envlist = py{38,39,310,311,312}
isolated_build = True
[testenv:py{37,38,39,310,311}]
[testenv:py{38,39,310,311,312}]
description = run tests against a built package
commands =
python -m unittest {posargs}
Expand Down

0 comments on commit 39eff9b

Please sign in to comment.