Skip to content

Commit cee2398

Browse files
committed
GH-3: Setup GHA for unit-tests
1 parent 3c8048f commit cee2398

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/tests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
12+
strategy:
13+
matrix:
14+
include:
15+
- python: "3.6"
16+
env: py36-django32
17+
os: ubuntu-20.04 # 3.6 is not available on ubuntu-20.04
18+
- python: "3.8"
19+
env: py38-django32
20+
- python: "3.10"
21+
env: py310-django32
22+
23+
- python: "3.8"
24+
env: py38-django40
25+
- python: "3.9"
26+
env: py39-django40
27+
- python: "3.10"
28+
env: py310-django40
29+
30+
- python: "3.9"
31+
env: py39-django41
32+
- python: "3.10"
33+
env: py310-django41
34+
- python: "3.11"
35+
env: py311-django41
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Set up Python ${{ matrix.python }}
40+
uses: actions/setup-python@v2
41+
with:
42+
python-version: ${{ matrix.python }}
43+
- name: Install dependencies
44+
run: |
45+
pip install --upgrade pip
46+
python -m pip install -e .
47+
pip install tox tox-gh-actions
48+
- name: Run tests using tox
49+
run: tox -e ${{ matrix.env }}

0 commit comments

Comments
 (0)