Skip to content

Commit 0d5e33e

Browse files
authored
feat: add lint ci cd and migrate ci to uv
feat: add lint ci cd and migrate ci to uv
2 parents 1b056cf + 53f95e4 commit 0d5e33e

2 files changed

Lines changed: 23 additions & 10 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
name: CI
22

33
on:
4-
push:
54
pull_request:
65
workflow_dispatch:
76

87
jobs:
98
test:
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
11+
- name: Clone repo
12+
uses: actions/checkout@v4
1313

14-
- name: Set up Python
15-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 5.2.0
16-
with:
17-
python-version: '3.10'
18-
19-
- name: Install dependencies
20-
run: pip install uv && uv pip install -e . --system
14+
- name: Set up uv
15+
uses: astral-sh/setup-uv@v6
2116

2217
- name: Run tests
23-
run: pytest --cov
18+
run: uv run pytest --cov

.github/workflows/lint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: lint and style checks
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Clone repo
12+
uses: actions/checkout@v4
13+
14+
- name: Set up uv
15+
uses: astral-sh/setup-uv@v6
16+
17+
- name: Run pre-commit
18+
run: uvx pre-commit run --all-files

0 commit comments

Comments
 (0)