Skip to content

ci: add ruff lint, MIT license and CI badges #1

ci: add ruff lint, MIT license and CI badges

ci: add ruff lint, MIT license and CI badges #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Ruff (lint + format)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Ruff check
run: ruff check .
- name: Ruff format check
run: ruff format --check .
build:
name: Smoke (compile + import)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Compile all Python sources
run: python -m compileall -q src app.py app_mapas.py 2>/dev/null || python -m compileall -q .
- name: Import distribution modules
run: python -c "import sys; sys.path.insert(0, 'src'); import graph_builder; print('graph_builder OK')"