Skip to content

Commit 7c25d51

Browse files
committed
rework to use uv
1 parent f02b296 commit 7c25d51

File tree

9 files changed

+381
-690
lines changed

9 files changed

+381
-690
lines changed

.github/workflows/pyci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
python-version: [3.8, 3.9]
1310
steps:
14-
- uses: actions/checkout@v2
15-
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
1814
with:
19-
python-version: ${{ matrix.python-version }}
15+
python-version: '3.12'
2016

2117
- name: Install dependencies
2218
run: |
23-
pip install poetry
19+
pip install uv
2420
make setup
2521
2622
- name: Run the linter

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
MANAGE := poetry run python manage.py
1+
MANAGE := uv run python manage.py
22

33
.PHONY: test
44
test:
5-
@poetry run pytest
5+
uv run pytest
66

77
.PHONY: setup
88
setup: db-clean install migrate
99

1010
.PHONY: install
1111
install:
12-
@poetry install
12+
@uv sync
1313

1414
.PHONY: db-clean
1515
db-clean:
@@ -25,4 +25,4 @@ shell:
2525

2626
.PHONY: lint
2727
lint:
28-
@poetry run flake8 python_django_orm_blog
28+
uv run ruff check python_django_orm_blog

0 commit comments

Comments
 (0)