Skip to content

Commit 282a8e9

Browse files
Kasper Jungeclaude
authored andcommitted
ci: add test workflow so PRs and pushes to main are automatically tested
Previously tests only ran during the publish workflow on release. Now pytest runs on every push to main and on every PR, across Python 3.11, 3.12, and 3.13. Also updates CODEBASE_MAP.md to document the new workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 92c464c commit 282a8e9

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests
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.11", "3.12", "3.13"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: astral-sh/setup-uv@v5
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- run: uv sync --group dev
22+
- run: uv run pytest

agent_docs/CODEBASE_MAP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ src/ralphify/ # All source code
2626
tests/ # Pytest tests — one test file per module
2727
docs/ # MkDocs site (Material theme) — user-facing documentation
2828
.github/workflows/
29+
├── test.yml # Run tests on push to main and PRs (Python 3.11–3.13)
2930
├── docs.yml # Deploy docs to GitHub Pages on push to main
3031
└── publish.yml # Publish to PyPI on release (with test gate)
3132
```

0 commit comments

Comments
 (0)