Skip to content

Commit 877b8f3

Browse files
committed
Add uv GitHub Actions CI
1 parent c61dc6c commit 877b8f3

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI - hello_uv
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v6
18+
with:
19+
enable-cache: true
20+
21+
- name: Install Python
22+
run: uv python install 3.11
23+
24+
- name: Install dependencies
25+
run: uv sync --locked --python 3.11
26+
27+
- name: Run tests
28+
run: uv run --locked pytest -v
29+
30+
- name: Build package
31+
run: uv build

0 commit comments

Comments
 (0)