Skip to content

Commit

Permalink
Fine-grained test matrix. (jazzband#742)
Browse files Browse the repository at this point in the history
* Fine-grained test matrix.

* Remove max parallel.
  • Loading branch information
jezdez authored Jan 18, 2021
1 parent af137cf commit bc0d0fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on: [push, pull_request]

jobs:
build:
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
django-version: ['2.2', '3.0', '3.1', 'dev']

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -49,6 +50,8 @@ jobs:
- name: Tox tests
run: |
tox -v
env:
DJANGO: ${{ matrix.django-version }}

- name: Upload coverage
uses: codecov/codecov-action@v1
Expand Down
18 changes: 13 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
pypy3-dj{22,30,31}
py{36,37,38,39}-dj{22,30,31,master}
py{36,37,38,39}-dj{22,30,31,dev}
docs

[gh-actions]
Expand All @@ -12,6 +12,13 @@ python =
3.9: py39
pypy3: pypy3

[gh-actions:env]
DJANGO =
2.2: dj22
3.0: dj30
3.1: dj31
dev: djdev

[testenv]
basepython =
pypy3: pypy3
Expand All @@ -24,7 +31,7 @@ deps =
dj22: Django>=2.2.1,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
djmaster: https://github.com/django/django/archive/master.tar.gz
djdev: https://github.com/django/django/archive/master.tar.gz
jinja2
coverage
jsmin==2.2.0
Expand All @@ -40,9 +47,10 @@ commands =
{envbindir}/coverage report
{envbindir}/coverage xml
whitelist_externals = npm

[testenv:py{36,37,38,39}-djmaster]
ignore_errors = True
ignore_outcome =
djdev: True
ignore_errors =
djdev: True

[testenv:docs]
basepython = python3.8
Expand Down

0 comments on commit bc0d0fb

Please sign in to comment.