-
Notifications
You must be signed in to change notification settings - Fork 171
35 lines (27 loc) · 984 Bytes
/
test-suite.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
name: Test Suite
on: [push, pull_request]
jobs:
build:
name: Build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
django-version: ['3.0', '3.1', '3.2', '4.0', '4.1', '4.2']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ matrix.python-version }}-django-${{ matrix.django-version }}-${{ hashFiles('pyproject.toml') }}
- name: Install Django
run: pip install django==${{ matrix.django-version }}
- name: Install dependencies
run: pip install -e .[test]
- name: Tests
run: scripts/test.sh
- name: Upload coverage
uses: codecov/codecov-action@v3