-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (49 loc) · 2.22 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Run tests
on: push
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
# tests supported django versions against python versions django officially support plus one higher
include:
- { "django-version": "2.2", "python-version": "3.8" }
- { "django-version": "2.2", "python-version": "3.9" }
- { "django-version": "3.0", "python-version": "3.8" }
- { "django-version": "3.0", "python-version": "3.9" }
- { "django-version": "3.1", "python-version": "3.8" }
- { "django-version": "3.1", "python-version": "3.9" }
- { "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": "4.0", "python-version": "3.8" }
- { "django-version": "4.0", "python-version": "3.9" }
- { "django-version": "4.0", "python-version": "3.10" }
- { "django-version": "4.0", "python-version": "3.11" }
- { "django-version": "4.1", "python-version": "3.8" }
- { "django-version": "4.1", "python-version": "3.9" }
- { "django-version": "4.1", "python-version": "3.10" }
- { "django-version": "4.1", "python-version": "3.11" }
- { "django-version": "4.2", "python-version": "3.8" }
- { "django-version": "4.2", "python-version": "3.9" }
- { "django-version": "4.2", "python-version": "3.10" }
- { "django-version": "4.2", "python-version": "3.11" }
- { "django-version": "4.2", "python-version": "3.12" }
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update setuptools pip and wheel
run: pip install -U setuptools pip wheel
- name: Install django
run: pip install django~=${{ matrix.django-version }}.0
- name: Install testing requirements
run: pip install -r requirements-test.txt
- name: Run tests
run: |
pip install --editable .
python -m tests