Skip to content

Commit 7fc8074

Browse files
committed
Formalize dependencies in pyproject.toml, update CI
Add [project] section with modal/httpx/fastapi and [dev] optional deps. CI now installs via pip install -e .[dev].
1 parent d1dc770 commit 7fc8074

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ jobs:
3535
- name: Install Dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install modal httpx fastapi pytest pytest-asyncio
38+
pip install -e ".[dev]"
3939
4040
- name: Run tests
4141
run: pytest tests/ -v
4242

4343
- name: Lint with ruff
44-
run: |
45-
pip install ruff
46-
ruff check app.py
44+
run: ruff check app.py
4745

4846
- name: Deploy job
4947
run: |

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
[project]
2+
name = "modal-github-runner"
3+
version = "0.3.0"
4+
requires-python = ">=3.10"
5+
dependencies = [
6+
"modal",
7+
"httpx",
8+
"fastapi",
9+
]
10+
11+
[project.optional-dependencies]
12+
dev = [
13+
"pytest",
14+
"pytest-asyncio",
15+
"ruff",
16+
]
17+
118
[tool.ruff]
219
target-version = "py310"
320
line-length = 120

0 commit comments

Comments
 (0)