-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.22 KB
/
Copy pathci.yml
File metadata and controls
46 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- 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')"