-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (36 loc) · 910 Bytes
/
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
django: ["3.2", "4.0", "4.1", "4.2", "5.0"]
exclude:
- python: "3.11"
django: "3.2"
- python: "3.11"
django: "4.0"
- python: "3.8"
django: "5.0"
- python: "3.9"
django: "5.0"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install package
run: pip install -e .
- name: Install dependencies
run: pip install -r dev-requirements.txt
- name: Install Django
run: pip install -U django==${{ matrix.django }}
- name: Run tests
run: ./runtests