Browse Source

Add Python free-threading to CI (#1554)

pull/1556/head
Miguel Grinberg 4 months ago
committed by GitHub
parent
commit
ccdd2004a0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      .github/workflows/tests.yml
  2. 13
      tox.ini

11
.github/workflows/tests.yml

@ -7,8 +7,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
- run: python -m pip install --upgrade pip wheel - run: python -m pip install --upgrade pip wheel tox
- run: pip install tox tox-gh-actions
- run: tox -eflake8 - run: tox -eflake8
- run: tox -edocs - run: tox -edocs
tests: tests:
@ -16,7 +15,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [windows-latest, macos-latest, ubuntu-latest] os: [windows-latest, macos-latest, ubuntu-latest]
python: ['3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.11'] python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', 'pypy3.11']
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@ -24,8 +23,7 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip wheel - run: python -m pip install --upgrade pip wheel tox
- run: pip install tox tox-gh-actions
- run: tox - run: tox
coverage: coverage:
name: coverage name: coverage
@ -33,8 +31,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
- run: python -m pip install --upgrade pip wheel - run: python -m pip install --upgrade pip wheel tox
- run: pip install tox tox-gh-actions
- run: tox - run: tox
- uses: codecov/codecov-action@v3 - uses: codecov/codecov-action@v3
with: with:

13
tox.ini

@ -1,16 +1,3 @@
[tox]
envlist=flake8,py{310,311,312,313,314},docs
skip_missing_interpreters=True
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
pypy-3: pypy3
[testenv] [testenv]
commands= commands=
pip install -e . pip install -e .

Loading…
Cancel
Save