Debian Codegraph @

.github/workflows/tests.yml

raw
1 name: Django CI
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 jobs:
10 build:
11
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16 django-version: ["3.2", "4.2", "5.0", "5.1", "5.2"]
17 exclude:
18 - python-version: 3.11
19 django-version: 3.2
20 - python-version: 3.12
21 django-version: 3.2
22 - python-version: 3.13
23 django-version: 3.2
24 - python-version: 3.13
25 django-version: 4.2
26 - python-version: 3.13
27 django-version: 5.0
28 - python-version: 3.8
29 django-version: 5.0
30 - python-version: 3.9
31 django-version: 5.0
32 - python-version: 3.8
33 django-version: 5.1
34 - python-version: 3.9
35 django-version: 5.1
36 - python-version: 3.8
37 django-version: 5.2
38 - python-version: 3.9
39 django-version: 5.2
40
41 steps:
42 - uses: actions/checkout@v4
43 - name: Set up Python ${{ matrix.python-version }}
44 uses: actions/setup-python@v5
45 with:
46 python-version: ${{ matrix.python-version }}
47 - name: Install Dependencies
48 run: |
49 python -m pip install --upgrade pip
50 pip install "Django==${{ matrix.django-version }}.*"
51 pip install -r tests/requirements.txt
52 python setup.py install
53 - name: Test with pytest
54 run: |
55 python -m pytest tests