-
Notifications
You must be signed in to change notification settings - Fork 15
85 lines (80 loc) · 2.85 KB
/
ci.yml
File metadata and controls
85 lines (80 loc) · 2.85 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
workflow_call:
pull_request:
push:
permissions:
contents: read
jobs:
test:
name: Test (Python ${{ matrix.python-version }}, Django ${{ matrix.django-name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.11"
django-name: "4.2"
django-constraint: "django>=4.2,<4.3"
- python-version: "3.11"
django-name: "5.0"
django-constraint: "django>=5.0,<5.1"
- python-version: "3.11"
django-name: "5.1"
django-constraint: "django>=5.1,<5.2"
- python-version: "3.11"
django-name: "5.2"
django-constraint: "django>=5.2,<5.3"
- python-version: "3.12"
django-name: "4.2"
django-constraint: "django>=4.2,<4.3"
- python-version: "3.12"
django-name: "5.0"
django-constraint: "django>=5.0,<5.1"
- python-version: "3.12"
django-name: "5.1"
django-constraint: "django>=5.1,<5.2"
- python-version: "3.12"
django-name: "5.2"
django-constraint: "django>=5.2,<5.3"
- python-version: "3.13"
django-name: "5.1"
django-constraint: "django>=5.1,<5.2"
- python-version: "3.13"
django-name: "5.2"
django-constraint: "django>=5.2,<5.3"
- python-version: "3.14"
django-name: "5.2"
django-constraint: "django>=5.2,<5.3"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "${{ matrix.python-version }}"
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Run tests
run: make test-django PYTHON=${{ matrix.python-version }} DJANGO_CONSTRAINT='${{ matrix.django-constraint }}'
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Sync dependencies
run: make sync
- name: Run lint
run: make lint
package-check:
name: Package Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Build package
run: make build