Skip to content

Lint pass: add ruff config, remove dead imports/vars, wire into CI #3

Lint pass: add ruff config, remove dead imports/vars, wire into CI

Lint pass: add ruff config, remove dead imports/vars, wire into CI #3

Workflow file for this run

name: CI
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ruff
- name: Lint (ruff)
run: ruff check src generate.py tests
- name: Compile all source (syntax check, not fake-green)
run: python -m compileall -q src generate.py
- name: Run test suite
env:
MPLBACKEND: Agg
run: python -m pytest -v
- name: Smoke-run the full generator
env:
MPLBACKEND: Agg
run: |
python generate.py > /dev/null
# At least one PNG must be produced per gallery type.
test -f output/mandala_01_erdos.png
test -f output/landscape_01_scalefree.png
test -f output/flow_01_vortex.png
test -f output/portrait_western.png
test -f output/heatmap_01_scalefree.png
echo "All gallery types produced output."