Skip to content

Commit 643828f

Browse files
committed
Add CI workflow for linting and testing with multiple Python versions
1 parent cd6ab87 commit 643828f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint-and-test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.10'
24+
25+
- name: Install uv
26+
run: |
27+
pip install uv
28+
29+
- name: Install dependencies
30+
run: |
31+
uv sync --dev
32+
33+
- name: Lint with ruff
34+
run: |
35+
uv run ruff check firefly tests
36+
37+
- name: Run tests with pytest
38+
run: |
39+
uv run pytest --cov=firefly --cov-report=term-missing

0 commit comments

Comments
 (0)