Skip to content

Commit 02fe242

Browse files
committed
add: ci workflow
1 parent 5af2725 commit 02fe242

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
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 code
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Install build dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y autoconf automake libtool m4 build-essential
22+
23+
- name: Install uv
24+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
25+
26+
- name: Build and install package
27+
run: |
28+
export PATH="$HOME/.cargo/bin:$PATH"
29+
make build
30+
make fresh-sync
31+
32+
- name: Run tests
33+
run: |
34+
export PATH="$HOME/.cargo/bin:$PATH"
35+
uv run pytest -v

0 commit comments

Comments
 (0)