1- name : Full Test and Merge
1+ name : CI
22
33on :
44 push :
@@ -15,34 +15,28 @@ jobs:
1515 runs-on : ubuntu-latest
1616 strategy :
1717 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']
3320
3421 steps :
3522 - uses : actions/checkout@v3
3623 - name : Set up Python
3724 uses : actions/setup-python@v4
3825 with :
3926 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+
4438 - name : Test
45- run : pytest .
39+ run : poetry run pytest .
4640
4741 merge :
4842 runs-on : ubuntu-latest
5650 PR_URL : ${{github.event.pull_request.html_url}}
5751 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
5852
59-
6053 release :
6154 runs-on : ubuntu-latest
6255 if : " startsWith(github.ref, 'refs/tags/')"
0 commit comments