Skip to content

Commit b71d16a

Browse files
MaxGhenisclaude
andcommitted
Add CI workflow for automated testing
- Run tests on Python 3.10, 3.11, 3.12 - Check code formatting with Black and isort - Use uv for fast dependency installation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 41f8bcd commit b71d16a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
26+
27+
- name: Install dependencies
28+
run: |
29+
uv pip install --system -e ".[dev]"
30+
31+
- name: Run tests
32+
run: |
33+
uv run pytest tests/ -v --tb=short
34+
35+
- name: Check formatting
36+
if: matrix.python-version == '3.10'
37+
run: |
38+
pip install black isort
39+
black --check givecalc/ tests/ ui/ --line-length 79
40+
isort --check givecalc/ tests/ ui/

0 commit comments

Comments
 (0)