Skip to content

Commit 4ff99a9

Browse files
committed
update to uv
1 parent 80cb01e commit 4ff99a9

File tree

6 files changed

+40
-885
lines changed

6 files changed

+40
-885
lines changed

.github/workflows/pyci.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
python-version: [3.6, 3.7, 3.8]
1310
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
1713
with:
18-
python-version: ${{ matrix.python-version }}
19-
- name: Install dependencies
14+
python-version: '3.13'
15+
- name: Install
2016
run: |
21-
pip install poetry
17+
pip install uv
2218
make install
23-
- name: Lint and test with pytest
24-
run: |
25-
make
19+
- name: Run linter
20+
run: make lint
21+
- name: Run tests
22+
run: make test

Makefile

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
export PYTHONPATH=src
22

3-
.PHONY: all
4-
all: lint pytest doctest
3+
check: test lint
54
@echo Done!
65

7-
.PHONY: pytest
8-
pytest:
9-
@poetry run pytest test
6+
test: lint
7+
@uv run pytest test
108

11-
.PHONY: doctest
12-
doctest:
13-
@poetry run python -m doctest -v README.md
14-
15-
.PHONY: lint
169
lint:
17-
@poetry run flake8 --statistics src test
10+
@uv run ruff check src test
1811

19-
.PHONY: install
2012
install:
21-
@poetry install
13+
@uv sync
14+
15+
.PHONY: all test install

0 commit comments

Comments
 (0)