Skip to content

Commit 891b7e5

Browse files
ci: update ci.yml to use uv
1 parent c76611b commit 891b7e5

1 file changed

Lines changed: 25 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
name: ci
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
1010

1111
jobs:
12-
lint:
13-
runs-on: ubuntu-latest
12+
lint:
13+
runs-on: ubuntu-latest
1414

15-
steps:
16-
- name: Checkout Repository
17-
uses: actions/checkout@v4
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
1818

19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: '3.x'
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
2323

24-
- name: Install Poetry
25-
run: |
26-
curl -sSL https://install.python-poetry.org | python -
27-
export PATH="$HOME/.poetry/bin:$PATH"
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v6
26+
with:
27+
version: "latest"
2828

29-
- name: Install dependencies
30-
run: |
31-
poetry install
29+
- name: Install dependencies
30+
run: uv sync --group dev
3231

33-
- name: Install Pre-commit Hooks
34-
run: poetry run pre-commit install
32+
- name: Install Pre-commit Hooks
33+
run: uv run pre-commit install
3534

36-
- name: Run Pre-commit on all files
37-
run: poetry run pre-commit run --all-files
35+
- name: Run Pre-commit on all files
36+
run: uv run pre-commit run --all-files

0 commit comments

Comments
 (0)