forked from crccheck/django-object-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.51 KB
/
ci.yml
File metadata and controls
53 lines (49 loc) · 1.51 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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Create matrix
id: create_matrix
# https://github.com/fabiocaccamo/create-matrix-action/releases
uses: fabiocaccamo/create-matrix-action@v5
with:
matrix: |
python-version {3.9}, django-version {4.2}
python-version {3.10}, django-version {4.2,5.0,5.1,5.2}
python-version {3.11}, django-version {4.2,5.0,5.1,5.2}
python-version {3.12}, django-version {4.2,5.0,5.1,5.2,6.0}
python-version {3.13}, django-version {5.1,5.2,6.0}
python-version {3.14}, django-version {6.0}
outputs:
matrix: ${{ steps.create_matrix.outputs.matrix }}
test:
needs: prepare
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
name: "Python ${{ matrix.python-version }} + Django ${{ matrix.django-version }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e '.[dev]'
- run: pip install "Django==${{ matrix.django-version }}.*"
- run: make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- run: pip install -e '.[dev]'
- run: make lint