Skip to content

Commit

Permalink
Support latest Python versions
Browse files Browse the repository at this point in the history
Python 3.11 and 3.12 were released since the last commits.
  • Loading branch information
inetAnt committed Feb 7, 2024
1 parent a106017 commit 2821682
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on: [push, pull_request]
jobs:
# https://docs.github.com/en/actions/guides/building-and-testing-python#testing-your-code
run-tests:
name: Run tests and linters (with tox)
name: Run tests (with tox)
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8, 3.9, '3.10']
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand All @@ -24,6 +24,21 @@ jobs:
- name: Test against listed Python versions
# Run tox using the version of Python in `PATH`
run: tox -e py

run-lint:
name: Run linters (with tox)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install Tox and any other packages
run: |
pip install tox
pip install -r requirements.txt -r requirements-dev.txt
- name: Run black
run: tox -e black
- name: Run pylama
Expand All @@ -38,10 +53,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Setup Python 3.10
- name: Setup Python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.12'
- name: Install pypa/build
run: |
python -m pip install build --user
Expand All @@ -62,10 +77,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Setup Python 3.10
- name: Setup Python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.12'
- name: Install pypa/build
run: |
python -m pip install build --user
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
],
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3{8,9,10},black,pylama
envlist = py3{8,9,10,11,12},black,pylama
skip_missing_interpreters = true

[testenv]
Expand All @@ -15,14 +15,14 @@ commands =
deps =
-rrequirements-dev.txt

basepython = python3.10
basepython = python3.12
commands =
black --check .

[testenv:pylama]
deps =
-rrequirements-dev.txt

basepython = python3.10
basepython = python3.12
commands =
pylama .

0 comments on commit 2821682

Please sign in to comment.