Skip to content

Commit 0ecae07

Browse files
Marat Saidovclaude
andcommitted
Add GitHub Actions CI with tests, coverage, and linting
- Add ci.yml workflow that runs on push/PR to master and qwen2.5-coder - Test on Python 3.12 with pytest and coverage reporting - Run ruff linter (warnings only, doesn't fail build) - Add pytest-cov to dev dependencies Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bd38d1f commit 0ecae07

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, qwen2.5-coder]
6+
pull_request:
7+
branches: [master, qwen2.5-coder]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python 3.12
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
cache: 'pip'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -e ".[dev]"
26+
27+
- name: Run linter
28+
run: python -m ruff check .
29+
continue-on-error: true
30+
31+
- name: Run tests with coverage
32+
run: |
33+
python -m pytest tests/ -v --tb=short --cov=src --cov-report=term-missing

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies = [
3030
[project.optional-dependencies]
3131
dev = [
3232
"pytest>=7.0",
33+
"pytest-cov>=4.0",
3334
"ruff>=0.1.0",
3435
"httpx>=0.24.0",
3536
]

0 commit comments

Comments
 (0)