Skip to content

Commit 8e532d0

Browse files
committed
Add CI workflow with ruff linting and multi-version testing
1 parent ff3a62f commit 8e532d0

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: '3.12'
19+
20+
- name: Install uv
21+
run: pip install uv
22+
23+
- name: Install dependencies
24+
run: uv pip install --system ruff
25+
26+
- name: Ruff check
27+
run: ruff check .
28+
29+
- name: Ruff format check
30+
run: ruff format --check .
31+
32+
test:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
python-version: ['3.10', '3.11', '3.12']
37+
steps:
38+
- uses: actions/checkout@v6
39+
40+
- name: Set up Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v6
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
45+
- name: Install uv
46+
run: pip install uv
47+
48+
- name: Install package
49+
run: uv pip install --system .
50+
51+
- name: Test SDK imports
52+
run: python -c "import rootly_sdk; print('SDK imports successfully')"

0 commit comments

Comments
 (0)