Skip to content

Commit 0e99bc0

Browse files
committed
GHA and Makefile
1 parent 620b799 commit 0e99bc0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ jobs:
1515
- name: Set up Python 3
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.x'
19-
cache: "pip"
18+
python-version: '3.13'
2019

21-
- name: Install dependencies
22-
run: make deps/pre install
20+
- name: Setup uv
21+
uses: astral-sh/setup-uv@v5
22+
23+
- name: Install dependencies from uv.lock
24+
run: make deps/install
2325

2426
- name: Run pytest
2527
run: make test

Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
dev:
2+
uv sync --dev
13

2-
deps/pre:
3-
pip install pip-tools
4-
5-
deps/compile:
6-
pip-compile
4+
deps/upgrade:
5+
uv lock --upgrade
76

87
deps/install:
9-
pip-sync
8+
uv sync
109

1110
install: deps/install
1211

@@ -23,11 +22,10 @@ endif
2322
all: download transform
2423

2524
test:
26-
PYTHONPATH="src" pytest
25+
uv run pytest
2726

2827
pre-commit:
2928
pre-commit install
30-
pre-commit run --all-files
3129

3230
clean:
3331
git clean -xdf

0 commit comments

Comments
 (0)