Skip to content

Commit f325586

Browse files
committed
chore(ci): add CI workflow configuration
1 parent f528a71 commit f325586

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .github/workflows/ci.yml
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
lint-and-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up uv
18+
uses: astral-sh/setup-uv@v6
19+
with:
20+
enable-cache: true
21+
22+
- name: Install dependencies
23+
run: |
24+
uv sync
25+
uv sync --group dev
26+
27+
- name: Run pre-commit hooks
28+
uses: pre-commit/action@v3.0.1
29+
30+
- name: Optimize uv cache for CI
31+
run: uv cache prune --ci

0 commit comments

Comments
 (0)