1
- name : Full Test and Merge
1
+ name : CI
2
2
3
3
on :
4
4
push :
@@ -15,34 +15,28 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
18
- python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
19
- django-version : ['<4.2', '<4.3', '<5.1']
20
- exclude :
21
- - python-version : ' 3.7'
22
- django-version : ' <5.1'
23
- - python-version : ' 3.8'
24
- django-version : ' <5.1'
25
- - python-version : ' 3.9'
26
- django-version : ' <5.1'
27
- - python-version : ' 3.12'
28
- django-version : ' <3.2'
29
- - python-version : ' 3.12'
30
- django-version : ' <3.3'
31
- - python-version : ' 3.13'
32
- django-version : ' >3.3'
18
+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
19
+ # django-version: ['<4.2', '<4.3', '<5.1']
33
20
34
21
steps :
35
22
- uses : actions/checkout@v3
36
23
- name : Set up Python
37
24
uses : actions/setup-python@v4
38
25
with :
39
26
python-version : ${{ matrix.python-version }}
40
- - name : Install core
41
- run : pip install --pre "Django${{ matrix.django-version }}" "pydantic<3"
42
- - name : Install tests
43
- run : pip install pytest pytest-asyncio pytest-django psycopg django-ninja
27
+
28
+ - name : Install Poetry
29
+ uses : snok/install-poetry@v1
30
+ with :
31
+ virtualenvs-create : true
32
+ virtualenvs-in-project : true
33
+
34
+ - name : Install python dependencies
35
+ run : |
36
+ poetry install --sync --no-interaction --no-root
37
+
44
38
- name : Test
45
- run : pytest .
39
+ run : poetry run pytest .
46
40
47
41
merge :
48
42
runs-on : ubuntu-latest
56
50
PR_URL : ${{github.event.pull_request.html_url}}
57
51
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
58
52
59
-
60
53
release :
61
54
runs-on : ubuntu-latest
62
55
if : " startsWith(github.ref, 'refs/tags/')"
0 commit comments