Skip to content

Commit

Permalink
Test Python 3.13 (#152)
Browse files Browse the repository at this point in the history
Plus a bit more Python-2-related cleanup following #149
  • Loading branch information
alexmojaki authored Oct 6, 2024
1 parent 0224610 commit d025140
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -17,6 +17,7 @@ jobs:
- '3.10'
- 3.11
- 3.12
- 3.13
# As per https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#pypy list of versions
- pypy-3.8
- pypy-3.9
Expand All @@ -36,6 +37,8 @@ jobs:
astroid-version: '<3'
- python-version: '3.12'
astroid-version: '<3'
- python-version: '3.13'
astroid-version: '<3'
- python-version: 'pypy-3.10'
astroid-version: '<3'

Expand All @@ -46,10 +49,10 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != '2.7'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install dependencies
run: |
Expand Down
11 changes: 2 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

Expand All @@ -32,13 +33,12 @@ install_requires =
six >= 1.12.0
typing; python_version < "3.5"
setup_requires = setuptools>=44; setuptools_scm[toml]>=3.4.3
python_requires = >=3.8

[options.extras_require]
astroid =
astroid >=1, <2; python_version < "3"
astroid >=2, <4; python_version >= "3"
test =
astroid >=1, <2; python_version < "3"
astroid >=2, <4; python_version >= "3"
pytest
pytest-cov
Expand All @@ -47,13 +47,6 @@ test =
[options.package_data]
asttokens = py.typed

[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1


[tool:pytest]
addopts = --disable-warnings --ignore=tests/testdata --strict-markers -m 'not slow'
markers =
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py{38,39,310,311,py,py3}
envlist = py{38,39,310,311,312,313,py3}

[testenv]
commands = pytest {posargs}
Expand Down

0 comments on commit d025140

Please sign in to comment.