forked from wooey/Wooey
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.36 KB
/
build.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
name: Build-and-Test
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
# Up to date compatibility matrix
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
os: [ubuntu-latest, windows-latest]
django-version: ["1.11", "2.2", "3.0"]
exclude:
- python-version: 3.8
django-version: "1.11"
- python-version: 2.7
django-version: "2.2"
- python-version: 2.7
django-version: "3.0"
- python-version: 3.5
django-version: "3.0"
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
env:
DJANGO_VERSION: ${{ matrix.django-version }}
run: |
echo "DV is ${DJANGO_VERSION}"
python -m pip install --upgrade pip
python -m pip install "Django~=${DJANGO_VERSION}"
make testenv
- name: Run Tests
run: |
make test
- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true