Skip to content

feat(raptor): PR-3a crash-exploitability pipeline core #5

feat(raptor): PR-3a crash-exploitability pipeline core

feat(raptor): PR-3a crash-exploitability pipeline core #5

Workflow file for this run

name: tests
on:
push:
branches: ["**"]
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install test deps
run: python -m pip install --upgrade pip pytest pyyaml
- name: Run test suite
run: python -m pytest -q
- name: Byte-compile all skill scripts
run: |
python - <<'PY'
import pathlib, py_compile, sys
bad = []
for p in pathlib.Path("skills").rglob("scripts/**/*.py"):
try:
py_compile.compile(str(p), doraise=True)
except py_compile.PyCompileError as e:
bad.append(str(p)); print(e)
sys.exit(1 if bad else 0)
PY
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: bash -n all shell scripts
run: |
set -e
find skills -name '*.sh' -print0 | while IFS= read -r -d '' f; do
bash -n "$f" && echo "ok: $f"
done