Skip to content

Commit 7a25412

Browse files
committed
Add GitHub Action workflow for Build & Test
1 parent 121a4f1 commit 7a25412

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build-and-test.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
name: Build and Test
13+
runs-on: macos-15
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.11'
22+
23+
- name: Install uv
24+
run: |
25+
curl -LsSf https://astral.sh/uv/install.sh | sh
26+
27+
- name: Install dependencies
28+
run: |
29+
make install
30+
31+
- name: Run linting
32+
run: |
33+
make lint
34+
35+
- name: Run formatting check
36+
run: |
37+
make format
38+
39+
- name: Run tests
40+
run: |
41+
make test

0 commit comments

Comments
 (0)