Skip to content

Commit f265e02

Browse files
committed
feat: add CI/CD workflow and Makefile for dev automation
Add GitHub Actions CI pipeline that runs lint (ruff), type checking (mypy), and tests (pytest) across Python 3.10-3.12. Add Makefile with common dev commands for local use.
1 parent 0aa9db6 commit f265e02

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -e ".[dev]"
25+
- name: Lint
26+
run: ruff check src/ tests/
27+
- name: Type check
28+
run: mypy src/openrouter_agent/
29+
- name: Test
30+
run: pytest tests/ -v

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.PHONY: test lint typecheck check install
2+
3+
install:
4+
pip install -e ".[dev]"
5+
6+
test:
7+
pytest tests/ -v
8+
9+
lint:
10+
ruff check src/ tests/
11+
12+
typecheck:
13+
mypy src/openrouter_agent/
14+
15+
check: lint typecheck test

0 commit comments

Comments
 (0)