@@ -15,36 +15,29 @@ jobs:
1515 name : " flake8 on code"
1616 steps :
1717 - uses : actions/checkout@v4
18- - name : Setup Python
19- uses : actions/setup-python@v5
18+
19+ - name : " Setup Python, Poetry and Dependencies"
20+ uses : dsoftwareinc/setup-python-poetry-action@v1
2021 with :
21- python-version : " 3.11"
22- cache-dependency-path : poetry.lock
23- - name : Install poetry and dependencies
24- shell : bash
25- run : |
26- python -m pip --quiet install poetry
27- echo "$HOME/.poetry/bin" >> $GITHUB_PATH
28- poetry install
22+ python-version : " 3.12"
23+ poetry-version : " 1.8.3"
24+
2925 - name : Run flake8
3026 shell : bash
3127 run : |
32- poetry run flake8 scheduler/
28+ poetry run flake8
3329
3430 testRedis :
3531 needs : [ 'flake8' ]
3632 runs-on : ubuntu-latest
3733 strategy :
3834 max-parallel : 6
3935 matrix :
40- python-version : [ '3.9', '3.10', '3.11', '3.12' ]
41- django-version : [ '4.2.13', '5.0.6' ]
42- exclude :
43- - python-version : ' 3.9'
44- django-version : ' 5.0.6'
36+ python-version : [ '3.10', '3.11', '3.12', '3.13' ]
37+ django-version : [ '5.0.6', '5.1b1' ]
4538 include :
46- - python-version : ' 3.11 '
47- django-version : ' 4.2.13 '
39+ - python-version : ' 3.12 '
40+ django-version : ' 5.0.6 '
4841 coverage : yes
4942 services :
5043 redis :
@@ -60,12 +53,15 @@ jobs:
6053 version : ${{ steps.getVersion.outputs.VERSION }}
6154 steps :
6255 - uses : actions/checkout@v4
63- - name : Set up Python ${{ matrix.python-version }}
64- uses : actions/setup-python@v5
56+
57+ - name : " Setup Python, Poetry and Dependencies"
58+ uses : dsoftwareinc/setup-python-poetry-action@v1
6559 with :
66- python-version : ${{ matrix.python-version }}
67- cache-dependency-path : poetry.lock
68- - name : Install poetry and dependencies
60+ python-version : " ${{ matrix.python-version }}"
61+ poetry-version : " 1.8.3"
62+ poetry-install-additional-args : " -E yaml"
63+
64+ - name : Install django version
6965 shell : bash
7066 run : |
7167 python -m pip --quiet install poetry
7975 run : |
8076 VERSION=$(poetry version -s --no-ansi -n)
8177 echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
78+
8279 - name : Check for missing migrations
8380 run : |
8481 cd testproject
@@ -130,32 +127,20 @@ jobs:
130127 strategy :
131128 max-parallel : 6
132129 matrix :
133- python-version : [ '3.9', '3.10', '3.11', '3.12' ]
134- django-version : [ '4.2.13', '5.0.6' ]
135- exclude :
136- - python-version : ' 3.9'
137- django-version : ' 5.0.6'
138- include :
139- - python-version : ' 3.11'
140- django-version : ' 4.2.13'
141- coverage : yes
130+ python-version : [ '3.10', '3.11', '3.12', '3.13' ]
131+ django-version : [ '5.0.6', '5.1b1' ]
142132
143133 outputs :
144134 version : ${{ steps.getVersion.outputs.VERSION }}
145135 steps :
146136 - uses : actions/checkout@v4
147- - name : Set up Python ${{ matrix.python-version }}
148- uses : actions/setup-python@v5
137+
138+ - name : " Setup Python, Poetry and Dependencies"
139+ uses : dsoftwareinc/setup-python-poetry-action@v1
149140 with :
150- python-version : ${{ matrix.python-version }}
151- cache-dependency-path : poetry.lock
152- - name : Install poetry and dependencies
153- shell : bash
154- run : |
155- python -m pip --quiet install poetry
156- echo "$HOME/.poetry/bin" >> $GITHUB_PATH
157- poetry install -E yaml
158- poetry run pip install django==${{ matrix.django-version }}
141+ python-version : " ${{ matrix.python-version }}"
142+ poetry-version : " 1.8.3"
143+ poetry-install-additional-args : " -E yaml"
159144
160145 - name : Get version
161146 id : getVersion
@@ -167,6 +152,7 @@ jobs:
167152 run : |
168153 cd testproject
169154 poetry run python manage.py makemigrations --check
155+
170156 - name : Run Tests without coverage
171157 run : |
172158 cd testproject
0 commit comments