-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) 路 1.84 KB
/
Copy pathci.yml
File metadata and controls
66 lines (55 loc) 路 1.84 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
pull_request:
push:
branches: ["main"]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system deps for PySide6 (Qt runtime)
# PySide6 wheel trae los .so de Qt pero depende de libEGL del sistema.
# En ubuntu-latest no viene preinstalado y rompe el import incluso en
# modo offscreen. libxkbcommon y libdbus tambi茅n son dependencias de
# los plugins de plataforma de Qt.
run: sudo apt-get update && sudo apt-get install -y libegl1 libxkbcommon0 libdbus-1-3 libfontconfig1 libxcb-cursor0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ruff
- name: Lint
run: ruff check .
- name: Test
env:
# Qt headless: sin esto los tests que instancian QMainWindow fallan
# al pedir display.
QT_QPA_PLATFORM: offscreen
run: pytest
- name: Check links (sitio, README de clase y URLs de la app)
# Detecta el 404 silencioso: una clase renombrada deja enlaces "Siguiente
# clase" apuntando a carpetas que ya no existen, tanto en site/ como en
# las URLs que arma la app de escritorio.
env:
QT_QPA_PLATFORM: offscreen
run: python scripts/check_links.py
docker:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Build Docker image
run: docker build -t python-data-science-program:ci .