Browse Source

simplify CI scripting

pull/1554/head
Miguel Grinberg 4 months ago
parent
commit
87c7ab2b87
Failed to extract signature
  1. 11
      .github/workflows/tests.yml
  2. 13
      tox.ini

11
.github/workflows/tests.yml

@ -7,8 +7,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python -m pip install --upgrade pip wheel
- run: pip install tox tox-gh-actions
- run: python -m pip install --upgrade pip wheel tox
- run: tox -eflake8
- run: tox -edocs
tests:
@ -16,7 +15,7 @@ jobs:
strategy:
matrix:
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
runs-on: ${{ matrix.os }}
steps:
@ -24,8 +23,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip wheel
- run: pip install tox tox-gh-actions
- run: python -m pip install --upgrade pip wheel tox
- run: tox
coverage:
name: coverage
@ -33,8 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: python -m pip install --upgrade pip wheel
- run: pip install tox tox-gh-actions
- run: python -m pip install --upgrade pip wheel tox
- run: tox
- uses: codecov/codecov-action@v3
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]
commands=
pip install -e .

Loading…
Cancel
Save