-
-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (34 loc) · 1018 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on: [push]
jobs:
cover:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 3.8
- run: pip install django coverage==4.5.4 python-coveralls .
- run: coverage run --source=. --omit=setup.py ./tests/manage.py test --verbosity=2
- run: coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
django-requirement:
- 'Django' # latest
- 'Django==4.2'
- 'Django==3.2'
- 'Django==2.2'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- run: pip install ${{ matrix.django-requirement }}
- run: pip install .
- run: ./tests/manage.py test --verbosity=2