Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tox-gh instead of a large test matrix #618

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,12 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13-dev'
tox-environment:
- dj50
- dj51
- djmain
include:
- python-version: '3.8'
tox-environment: dj42
- python-version: '3.9'
tox-environment: dj42

env:
COVERALLS_FLAG_NAME: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
COVERALLS_PARALLEL: true
Expand All @@ -48,7 +40,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: python -m pip install coveralls tox
run: python -m pip install coveralls tox-gh

- name: Run tests
run: tox
Expand Down
13 changes: 10 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[tox]
envlist =
black
flake8
isort
ruff
dj42
dj50
dj51
Expand All @@ -11,6 +9,15 @@ envlist =
isolated_build = true
minversion = 1.9

[gh]
python =
3.8 = dj42
3.9 = dj42
3.10 = dj{42,50,51,main}
3.11 = dj{42,50,51,main}
3.12 = dj{42,50,51,main}
3.13 = dj{42,50,51,main}

[testenv]
deps =
babel
Expand Down
Loading