Skip to content

Commit 1271ea7

Browse files
authored
Merge pull request #145 from graingert/configure-gha
configure GHA
2 parents a490560 + 2183473 commit 1271ea7

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.9"]
14+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]
15+
django-version: ["18", "19", "110", "111", "20", "21", "22", "30", "31", "32"]
16+
exclude:
17+
- {python-version: "2.7", django-version: "20"}
18+
- {python-version: "2.7", django-version: "21"}
19+
- {python-version: "2.7", django-version: "22"}
20+
- {python-version: "2.7", django-version: "30"}
21+
- {python-version: "2.7", django-version: "31"}
22+
- {python-version: "2.7", django-version: "32"}
23+
- {python-version: "3.5", django-version: "30"}
24+
- {python-version: "3.5", django-version: "31"}
25+
- {python-version: "3.5", django-version: "32"}
1526

1627
steps:
1728
- uses: actions/checkout@v2
@@ -21,6 +32,17 @@ jobs:
2132
with:
2233
python-version: ${{ matrix.python-version }}
2334

24-
- name: Hello world
35+
- name: Install dependencies
2536
run: |
26-
echo "hello world"
37+
python -m pip install -U tox
38+
39+
- name: Test
40+
run: tox -e py${{ matrix.python-version }}-django${{ matrix.django-version }}
41+
42+
all-successful:
43+
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
44+
runs-on: ubuntu-latest
45+
needs: [test]
46+
steps:
47+
- name: note that all tests succeeded
48+
run: echo "🎉"

0 commit comments

Comments
 (0)