Debian Codegraph @

.github/workflows/test_full.yml

raw symbols SCIP
1 name: Full Test
2
3 on:
4 push:
5 workflow_dispatch:
6 pull_request:
7 types: [assigned, opened, synchronize, reopened]
8
9 jobs:
10 test:
11 runs-on: ubuntu-22.04
12 strategy:
13 matrix:
14 python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
15 django-version: ['<3.2', '<3.3', '<4.2', '<4.3', '<5.1', '<5.2', '<5.3', '<6.1']
16 exclude:
17 - python-version: '3.7'
18 django-version: '<5.1'
19
20 - python-version: '3.8'
21 django-version: '<5.1'
22
23 - python-version: '3.9'
24 django-version: '<5.1'
25
26 - python-version: '3.12'
27 django-version: '<3.2'
28 - python-version: '3.12'
29 django-version: '<3.3'
30
31 - python-version: '3.13'
32 django-version: '<3.2'
33 - python-version: '3.13'
34 django-version: '<3.3'
35
36 # as of oct 2025 looks like django < 5.2 does not support python 3.14
37 - python-version: '3.14'
38 django-version: '<3.2'
39 - python-version: '3.14'
40 django-version: '<3.3'
41 - python-version: '3.14'
42 django-version: '<4.2'
43 - python-version: '3.14'
44 django-version: '<4.3'
45 - python-version: '3.14'
46 django-version: '<5.1'
47 - python-version: '3.14'
48 django-version: '<5.2'
49
50 steps:
51 - uses: actions/checkout@v6
52 - name: Set up Python
53 uses: actions/setup-python@v5
54 with:
55 python-version: ${{ matrix.python-version }}
56 - name: Install core
57 run: pip install "Django${{ matrix.django-version }}" "pydantic<3"
58 - name: Install tests
59 run: pip install pytest pytest-asyncio pytest-django psycopg2-binary
60 - name: Test
61 run: pytest
62
63 coverage:
64 runs-on: ubuntu-latest
65
66 steps:
67 - uses: actions/checkout@v6
68 - name: Set up Python
69 uses: actions/setup-python@v5
70 with:
71 python-version: 3.12
72 - name: Install Flit
73 run: pip install flit "django>=5.2"
74 - name: Install Dependencies
75 run: flit install --symlink
76 - name: Test
77 run: pytest --cov=ninja
78
79 codestyle:
80 runs-on: ubuntu-latest
81 steps:
82 - uses: actions/checkout@v6
83 - name: Set up Python
84 uses: actions/setup-python@v5
85 with:
86 python-version: 3.12
87 - name: Install Flit
88 run: pip install flit
89 - name: Install Dependencies
90 run: flit install --symlink
91 - name: Ruff format
92 run: ruff format --check ninja tests
93 - name: Ruff lint
94 run: ruff check ninja tests
95 - name: mypy
96 run: mypy ninja tests/mypy_test.py