5050 - name : Run creation
5151 run : ./scripts/ci_run_fastapi.sh "fastapi" 1
5252 shell : bash
53- - name : Install Dependencies
54- working-directory : ${{ env.WORKING_DIR }}
55- run : |
56- uv lock
57- uv sync --frozen
5853 - name : Pre-commit check
5954 working-directory : ${{ env.WORKING_DIR }}
6055 run : |
61- uv run pre-commit install
6256 git add .
6357 uv run pre-commit run --all-files
6458 - name : make .env
9488 - name : Run creation
9589 run : ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 1
9690 shell : bash
97- - name : Install Dependencies
98- working-directory : ${{ env.WORKING_DIR }}
99- run : |
100- uv lock
101- uv sync --frozen
10291 - name : Pre-commit check
10392 working-directory : ${{ env.WORKING_DIR }}
10493 run : |
105- uv run pre-commit install
10694 git add .
10795 uv run pre-commit run --all-files
10896 - name : Test with pytest
@@ -137,13 +125,9 @@ jobs:
137125 - name : Run creation
138126 run : ./scripts/ci_run_fastapi.sh "fastapi" 2
139127 shell : bash
140- - name : Install Dependencies
141- working-directory : ${{ env.WORKING_DIR }}
142- run : poetry install
143128 - name : Pre-commit check
144129 working-directory : ${{ env.WORKING_DIR }}
145130 run : |
146- poetry run pre-commit install
147131 git add .
148132 poetry run pre-commit run --all-files
149133 - name : make .env
@@ -183,13 +167,9 @@ jobs:
183167 - name : Run creation
184168 run : ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 2
185169 shell : bash
186- - name : Install Dependencies
187- working-directory : ${{ env.WORKING_DIR }}
188- run : poetry install
189170 - name : Pre-commit check
190171 working-directory : ${{ env.WORKING_DIR }}
191172 run : |
192- poetry run pre-commit install
193173 git add .
194174 poetry run pre-commit run --all-files
195175 - name : Test with pytest
@@ -218,17 +198,11 @@ jobs:
218198 - name : Run creation
219199 run : ./scripts/ci_run_fastapi.sh "fastapi" 4
220200 shell : bash
221- - name : Install Dependencies
222- working-directory : ${{ env.WORKING_DIR }}
223- run : |
224- python -m pip install -U pip
225- python -m pip install -r requirements-dev.txt -r requirements.txt
226201 - name : Pre-commit check
227202 working-directory : ${{ env.WORKING_DIR }}
228203 run : |
229- pre-commit install
230204 git add .
231- pre-commit run --all-files
205+ .venv/bin/ pre-commit run --all-files
232206 - name : make .env
233207 working-directory : ${{ env.WORKING_DIR }}
234208 run : touch .env
@@ -237,7 +211,7 @@ jobs:
237211 run : docker compose up -d
238212 - name : Test with pytest
239213 working-directory : ${{ env.WORKING_DIR }}
240- run : python -m pytest -n auto
214+ run : .venv/bin/ pytest -n auto
241215 test-setuptools-non-fastapi-project :
242216 name : test-fastapi-setuptools-setup-non-fastapi
243217 strategy :
@@ -260,21 +234,15 @@ jobs:
260234 - name : Run creation
261235 run : ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 4
262236 shell : bash
263- - name : Install Dependencies
264- working-directory : ${{ env.WORKING_DIR }}
265- run : |
266- python -m pip install -U pip
267- python -m pip install -r requirements-dev.txt
268237 - name : Pre-commit check
269238 working-directory : ${{ env.WORKING_DIR }}
270239 run : |
271- pre-commit install
272240 git add .
273- pre-commit run --all-files
241+ .venv/bin/ pre-commit run --all-files
274242 - name : Test with pytest
275243 working-directory : ${{ env.WORKING_DIR }}
276244 if : matrix.project_type == 'application'
277- run : python -m pytest
245+ run : .venv/bin/ pytest
278246 test-pyo3-uv-fastapi-project :
279247 name : test-fastapi-pyo3-uv-setup-fastapi
280248 strategy :
@@ -299,16 +267,9 @@ jobs:
299267 - name : Run creation
300268 run : ./scripts/ci_run_fastapi.sh "fastapi" 3
301269 shell : bash
302- - name : Install Dependencies
303- working-directory : ${{ env.WORKING_DIR }}
304- run : |
305- uv lock
306- uv sync --frozen
307- uv run maturin build
308270 - name : Pre-commit check
309271 working-directory : ${{ env.WORKING_DIR }}
310272 run : |
311- uv run pre-commit install
312273 git add .
313274 uv run pre-commit run --all-files
314275 - name : make .env
@@ -344,16 +305,13 @@ jobs:
344305 - name : Run creation
345306 run : ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 3
346307 shell : bash
347- - name : Install Dependencies
308+ - name : Compile Rust
348309 working-directory : ${{ env.WORKING_DIR }}
349310 run : |
350- uv lock
351- uv sync --frozen
352- uv run maturin build
311+ uv run maturin develop
353312 - name : Pre-commit check
354313 working-directory : ${{ env.WORKING_DIR }}
355314 run : |
356- uv run pre-commit install
357315 git add .
358316 uv run pre-commit run --all-files
359317 - name : Test with pytest
@@ -382,18 +340,15 @@ jobs:
382340 - name : Run creation
383341 run : ./scripts/ci_run_fastapi.sh "fastapi" 3 2
384342 shell : bash
385- - name : Install Dependencies
343+ - name : Compile Rust
386344 working-directory : ${{ env.WORKING_DIR }}
387345 run : |
388- python -m pip install -U pip
389- python -m pip install -r requirements.txt -r requirements-dev.txt
390- python -m maturin build
346+ .venv/bin/maturin develop
391347 - name : Pre-commit check
392348 working-directory : ${{ env.WORKING_DIR }}
393349 run : |
394- pre-commit install
395350 git add .
396- pre-commit run --all-files
351+ .venv/bin/ pre-commit run --all-files
397352 - name : make .env
398353 working-directory : ${{ env.WORKING_DIR }}
399354 run : touch .env
@@ -402,7 +357,7 @@ jobs:
402357 run : docker compose up -d
403358 - name : Test with pytest
404359 working-directory : ${{ env.WORKING_DIR }}
405- run : python -m pytest -n auto
360+ run : .venv/bin/ pytest -n auto
406361 test-pyo3-setuptools-non-fastapi-project :
407362 name : test-fastapi-setuptools-pyo3-setup-non-fastapi
408363 strategy :
@@ -425,19 +380,16 @@ jobs:
425380 - name : Run creation
426381 run : ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 3 2
427382 shell : bash
428- - name : Install Dependencies
383+ - name : Compile Rust
429384 working-directory : ${{ env.WORKING_DIR }}
430385 run : |
431- python -m pip install -U pip
432- python -m pip install -r requirements-dev.txt
433- python -m maturin build
386+ .venv/bin/maturin develop
434387 - name : Pre-commit check
435388 working-directory : ${{ env.WORKING_DIR }}
436389 run : |
437- pre-commit install
438390 git add .
439- pre-commit run --all-files
391+ .venv/bin/ pre-commit run --all-files
440392 - name : Test with pytest
441393 working-directory : ${{ env.WORKING_DIR }}
442394 if : matrix.project_type == 'application'
443- run : python -m pytest
395+ run : .venv/bin/ pytest
0 commit comments