Skip to content

Commit 2c28717

Browse files
committed
Upgrade GHA, update pyproject.toml dev deps
1 parent 5673ec0 commit 2c28717

File tree

3 files changed

+21
-27
lines changed

3 files changed

+21
-27
lines changed

.github/workflows/python-pytest.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,19 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os: [macos-latest, windows-latest, ubuntu-latest]
18-
python-version: ["3.10", "3.11", "3.12"]
1918
runs-on: ${{ matrix.os }}
2019
steps:
21-
- uses: actions/checkout@v3
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v3
24-
with:
25-
python-version: ${{ matrix.python-version }}
20+
- uses: actions/checkout@v4
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v6
24+
2625
- name: Install dependencies
2726
run: |
28-
python -m pip install --upgrade pip
29-
python -m pip install uv
30-
python -m uv pip install .
31-
python -m uv pip install black
27+
uv sync
3228
- name: Test black formatted
3329
run: |
34-
black src --check
30+
uv run black src --check
3531
- name: Test with pytest
3632
run: |
37-
pytest
33+
uv run pytest

pyproject.toml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@ dependencies = [
1111
"shapely>=2.0.0"
1212
]
1313

14-
[project.optional-dependencies]
15-
16-
dev = [
17-
"black"
18-
]
19-
20-
test = [
21-
"pytest >= 8.0.0",
22-
]
23-
2414
[build-system]
2515
requires = ["flit_core >=3.2,<4"]
2616
build-backend = "flit_core.buildapi"
17+
18+
[dependency-groups]
19+
dev = [
20+
"black>=25.1.0",
21+
"pytest>=8.4.1",
22+
]

uv.lock

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

0 commit comments

Comments
 (0)