Skip to content

Commit ccc239d

Browse files
baijumclaude
andcommitted
ci: add CI workflow to run tests on all pushes and PRs
Tests previously only ran on main pushes inside deploy.yml. PRs and feature branches had no test gate. This adds a dedicated ci.yml that runs pytest on every push and pull request. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6aad919 commit ccc239d

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
with:
13+
python-version: "3.12"
14+
cache: 'pip'
15+
- name: Run tests
16+
run: |
17+
pip install -r requirements.txt
18+
pip install pytest
19+
if python -m pytest --collect-only -q >/dev/null 2>&1; then
20+
pytest --tb=short
21+
else
22+
echo "No tests found, skipping"
23+
fi

0 commit comments

Comments
 (0)