Skip to content

Commit bedb940

Browse files
authored
build: pin dependencies (#131)
* build: pin dependencies
1 parent 244ae28 commit bedb940

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ jobs:
5151
New-Item -Type Directory -Force .venv
5252
"$(Resolve-Path .venv)/Scripts" | Out-File -FilePath "${env:GITHUB_PATH}" -Append
5353
54-
- run: uv sync
54+
- run: |
55+
uv lock --check
56+
uv sync --frozen
5557
5658
- run: make lint test
5759

pyproject.toml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ description = "Python example app incorporating best practices"
99
authors = [{ name = "yxtay", email = "[email protected]" }]
1010
license = "MIT"
1111
requires-python = "~=3.11"
12-
dependencies = ["fastapi[all]", "gunicorn", "loguru", "sqlmodel", "typer"]
12+
dependencies = [
13+
"fastapi[all]>=0.115",
14+
"gunicorn>=23.0",
15+
"loguru>=0.7",
16+
"sqlmodel>=0.0",
17+
"typer>=0.15",
18+
]
1319

1420
[dependency-groups]
1521
dev = [
16-
"mypy",
17-
"pytest",
18-
"pytest-cov",
19-
"pytest-env",
20-
"pytest-mock",
21-
"pytest-xdist",
22+
"mypy~=1.15",
23+
"pytest~=8.3",
24+
"pytest-cov~=6.0",
25+
"pytest-env~=1.1",
26+
"pytest-mock~=3.14",
27+
"pytest-xdist~=3.6",
2228
]
2329

2430
[tool.isort]

uv.lock

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)