Skip to content

Commit 75160da

Browse files
committed
#24 Fix CI workflow: quote version specifiers, add push trigger, align deps
- Quote pip install version specifiers to prevent shell glob expansion - Add push trigger for develop and main branches - Align dependency versions with requirements.txt - Add pip cache to lint job
1 parent 5c5f28b commit 75160da

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI
22

33
on:
4+
push:
5+
branches: [develop, main]
46
pull_request:
57
branches: [develop, main]
68

@@ -14,9 +16,10 @@ jobs:
1416
- uses: actions/setup-python@v5
1517
with:
1618
python-version: "3.12"
19+
cache: pip
1720

1821
- name: Install Ruff
19-
run: pip install ruff>=0.9.0
22+
run: pip install 'ruff>=0.9.0'
2023

2124
- name: Ruff check
2225
run: ruff check .
@@ -38,8 +41,8 @@ jobs:
3841
- name: Install dependencies
3942
run: |
4043
pip install --upgrade pip
41-
pip install fastapi uvicorn python-multipart python-dotenv
42-
pip install pytest pytest-asyncio httpx pytest-cov
44+
pip install 'fastapi>=0.115.0' 'uvicorn[standard]>=0.34.0' 'python-multipart>=0.0.20' 'python-dotenv>=1.0.0'
45+
pip install 'pytest>=8.0.0' 'pytest-asyncio>=0.24.0' 'httpx>=0.27.0' 'pytest-cov>=6.0.0'
4346
4447
- name: Run tests with coverage
4548
run: pytest --cov --cov-report=term-missing --cov-fail-under=80

0 commit comments

Comments
 (0)