forked from bnznamco/djsuperadmin
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (52 loc) · 1.57 KB
/
ci.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test and Coverage
on:
push:
branches: [ master, release ]
pull_request:
branches: [ master, release ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
include:
# Django 2.2
- python-version: "3.6"
django-version: "2.2"
- python-version: "3.7"
django-version: "2.2"
- python-version: "3.8"
django-version: "2.2"
- python-version: "3.9"
django-version: "2.2"
- python-version: "3.10"
django-version: "2.2"
# Django 3.2
- python-version: "3.6"
django-version: "3.2"
- python-version: "3.7"
django-version: "3.2"
- python-version: "3.8"
django-version: "3.2"
- python-version: "3.9"
django-version: "3.2"
- python-version: "3.10"
django-version: "3.2"
name: Test on Python ${{ matrix.python-version }} with Django ${{ matrix.django-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} 🐍
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies 📦
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install Django==${{ matrix.django-version }}
- name: Test with pytest and calculate coverage 🧪
run: |
make test
- name: Upload coverage
uses: codecov/codecov-action@v2