@@ -196,3 +196,82 @@ jobs:
196196 working-directory : ${{ env.WORKING_DIR }}
197197 if : matrix.project_type == 'application'
198198 run : poetry run pytest
199+ test-setuptools-fastapi-project :
200+ name : test-fastapi-setuptools-setup-fastapi
201+ strategy :
202+ fail-fast : false
203+ runs-on : ubuntu-latest
204+ steps :
205+ - uses : actions/checkout@v5
206+ - name : install Rust
207+ uses : dtolnay/rust-toolchain@stable
208+ - name : Cache Rust dependencies
209+ 210+ - name : Install sqlx-cli
211+ run : cargo install sqlx-cli --no-default-features -F native-tls -F postgres
212+ - name : Set up Python
213+ uses : actions/setup-python@v6
214+ with :
215+ python-version : " ${{ env.MIN_PYTHON_VERSION }}"
216+ - name : Build package
217+ run : cargo build --release -F fastapi
218+ - name : Run creation
219+ run : ./scripts/ci_run_fastapi.sh "fastapi" 4
220+ 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
226+ - name : Pre-commit check
227+ working-directory : ${{ env.WORKING_DIR }}
228+ run : |
229+ pre-commit install
230+ git add .
231+ pre-commit run --all-files
232+ - name : make .env
233+ working-directory : ${{ env.WORKING_DIR }}
234+ run : touch .env
235+ - name : Build and start Docker containers
236+ working-directory : ${{ env.WORKING_DIR }}
237+ run : docker compose up -d
238+ - name : Test with pytest
239+ working-directory : ${{ env.WORKING_DIR }}
240+ run : python -m pytest -n auto
241+ test-setuptools-non-fastapi-project :
242+ name : test-fastapi-setuptools-setup-non-fastapi
243+ strategy :
244+ fail-fast : false
245+ matrix :
246+ project_type : ["application", "lib"]
247+ runs-on : ubuntu-latest
248+ steps :
249+ - uses : actions/checkout@v5
250+ - name : install Rust
251+ uses : dtolnay/rust-toolchain@stable
252+ - name : Cache Rust dependencies
253+ 254+ - name : Set up Python
255+ uses : actions/setup-python@v6
256+ with :
257+ python-version : " ${{ env.MIN_PYTHON_VERSION }}"
258+ - name : Build package
259+ run : cargo build --release -F fastapi
260+ - name : Run creation
261+ run : ./scripts/ci_run_fastapi.sh ${{ matrix.project_type }} 4
262+ 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
268+ - name : Pre-commit check
269+ working-directory : ${{ env.WORKING_DIR }}
270+ run : |
271+ pre-commit install
272+ git add .
273+ pre-commit run --all-files
274+ - name : Test with pytest
275+ working-directory : ${{ env.WORKING_DIR }}
276+ if : matrix.project_type == 'application'
277+ run : python -m pytest
0 commit comments