Skip to content

Commit 00da289

Browse files
CI Fix
1 parent 0ae16c1 commit 00da289

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ jobs:
1212
- name: Checkout Code Repository
1313
uses: actions/checkout@v4
1414

15-
- name: Set up Python
16-
uses: actions/setup-python@v5
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v6
1717
with:
18+
version: "latest"
1819
python-version: "3.13"
20+
activate-environment: true
21+
env:
22+
UV_VENV_SEED: 1
23+
24+
- name: Install Dependencies
25+
run: uv sync --extra dev --extra test
26+
1927

2028
# Consider using pre-commit.ci for open source project
2129
- name: Run pre-commit
@@ -29,20 +37,21 @@ jobs:
2937
fail-fast: false
3038
runs-on: ${{ matrix.os }}
3139
steps:
40+
3241
- name: Checkout
3342
uses: actions/checkout@v4
34-
- name: Set up Python
35-
uses: actions/setup-python@v5
36-
with:
37-
python-version: ${{ matrix.python-version }}
43+
3844
- name: Install uv
39-
uses: astral-sh/setup-uv@v5
45+
uses: astral-sh/setup-uv@v6
4046
with:
47+
version: "latest"
4148
python-version: ${{ matrix.python-version }}
42-
- name: Install the package and test dependencies
43-
run: |
44-
uv venv
45-
uv pip install --upgrade pip
46-
uv pip install -e '.[test]'
49+
activate-environment: true
50+
env:
51+
UV_VENV_SEED: 1
52+
53+
- name: Install Dependencies
54+
run: uv sync --extra dev --extra test
55+
4756
- name: Run tests
4857
run: uv run --no-project pytest -nauto

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ cli = [
3535
]
3636
dev = [
3737
"check-manifest",
38+
"mypy==1.15.0", # https://github.com/python/mypy
3839
# Pre Commit Hooks
39-
"pre-commit>=4,<5",
40+
"pre-commit>=4,<5", # https://github.com/pre-commit/pre-commit
4041
# Linting
4142
"ruff>=0.10,<1.0",
4243
]

0 commit comments

Comments
 (0)