Skip to content

Commit 7472596

Browse files
saibamoclaude
andcommitted
ci: add test + bandit + ruff workflow
Runs ruff (informational), a bandit high-severity gate (fails on shell=True etc.) and pytest on push/PR. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 46330bc commit 7472596

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.12"
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install pytest pytest-cov ruff bandit
19+
pip install -e .
20+
- name: Lint (ruff, informational)
21+
run: ruff check .
22+
continue-on-error: true
23+
- name: Security gate (bandit, fails on high severity, e.g. shell=True)
24+
run: bandit -r sofahutils --severity-level high
25+
- name: Tests
26+
run: pytest -q

0 commit comments

Comments
 (0)