Skip to content

Commit ed329ba

Browse files
committed
combine more jobs
1 parent d798a9a commit ed329ba

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,8 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
python: ["3.6", "3.7", "3.8", "3.9"]
33-
name: "Django 2.2 + Python ${{ matrix.python }}"
34-
runs-on: ubuntu-latest
35-
env:
36-
POETRY_VIRTUALENVS_CREATE: false
37-
steps:
38-
- uses: actions/checkout@v2
39-
- uses: actions/setup-python@v2
40-
with:
41-
python-version: ${{ matrix.python }}
42-
- run: pip install poetry
43-
- run: poetry install
44-
- run: poetry add "Django==2.2.*"
45-
- run: make test
46-
test-dj30:
47-
strategy:
48-
fail-fast: false
49-
matrix:
50-
python: ["3.6", "3.7", "3.8", "3.9"]
51-
name: "Django 3.0 + Python ${{ matrix.python }}"
33+
django: ["2.2.*"]
34+
name: "Django ${{ matrix.django }} + Python ${{ matrix.python }}"
5235
runs-on: ubuntu-latest
5336
env:
5437
POETRY_VIRTUALENVS_CREATE: false
@@ -59,14 +42,15 @@ jobs:
5942
python-version: ${{ matrix.python }}
6043
- run: pip install poetry
6144
- run: poetry install
62-
- run: poetry add "Django==3.0.*"
45+
- run: poetry add "Django==${{ matrix.django }}"
6346
- run: make test
6447
test-dj31:
6548
strategy:
6649
fail-fast: false
6750
matrix:
6851
python: ["3.6", "3.7", "3.8", "3.9"]
69-
name: "Django 3.1 + Python ${{ matrix.python }}"
52+
django: ["3.0.*", "3.1.*"]
53+
name: "Django ${{ matrix.django }} + Python ${{ matrix.python }}"
7054
runs-on: ubuntu-latest
7155
env:
7256
POETRY_VIRTUALENVS_CREATE: false
@@ -77,14 +61,15 @@ jobs:
7761
python-version: ${{ matrix.python }}
7862
- run: pip install poetry
7963
- run: poetry install
80-
- run: poetry add "Django==3.1.*"
64+
- run: poetry add "Django==${{ matrix.django }}"
8165
- run: make test
8266
test-dj32:
8367
strategy:
8468
fail-fast: false
8569
matrix:
8670
python: ["3.8", "3.9", "3.10"]
87-
name: "Django 3.2 + Python ${{ matrix.python }}"
71+
django: ["3.2.*"]
72+
name: "Django ${{ matrix.django }} + Python ${{ matrix.python }}"
8873
runs-on: ubuntu-latest
8974
env:
9075
POETRY_VIRTUALENVS_CREATE: false
@@ -95,7 +80,7 @@ jobs:
9580
python-version: ${{ matrix.python }}
9681
- run: pip install poetry
9782
- run: poetry install
98-
- run: poetry add "Django==3.2.*"
83+
- run: poetry add "Django==${{ matrix.django }}"
9984
- run: make test
10085

10186
lint:

0 commit comments

Comments
 (0)