Skip to content

Commit

Permalink
Run tests on Python 3.13 release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Feb 2, 2025
1 parent 1d565a2 commit 355d0ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.9']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10']

steps:
- uses: actions/checkout@v4
Expand All @@ -32,11 +33,12 @@ jobs:
python -m pip install tox tox-gh-actions
sudo apt-get install libmemcached-dev
- name: Lint
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.13'
run: |
pip install setuptools
tox -e lint,mypy
- name: Docs
if: matrix.python-version == '3.10'
if: matrix.python-version == '3.13'
run: |
tox -e docs
- name: Disable IPv6 localhost
Expand Down
3 changes: 2 additions & 1 deletion lint-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
black==24.4.2
docutils==0.20.1
flake8==7.1.1
pygments==2.18.0
pygments==2.18.0
setuptools; python_version >= "3.12"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py39', 'py310']

[tool.mypy]
python_version = 3.7
python_version = 3.9
ignore_missing_imports = true
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ skip_missing_interpreters = true

[gh-actions]
python =
pypy-3.7: pypy3
pypy-3.10: pypy3

[testenv]
description = run tests with {basepython}
Expand All @@ -24,7 +24,8 @@ commands =

[testenv:lint]
description = lint source code
deps = -r{toxinidir}/lint-requirements.txt
deps =
-r{toxinidir}/lint-requirements.txt
commands =
python setup.py check --metadata --restructuredtext --strict
flake8
Expand Down

0 comments on commit 355d0ff

Please sign in to comment.