05/23 Fix ci.yml
This commit is contained in:
@@ -27,14 +27,18 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
# ── 4. Install dependencies ────────────────────────────────────────
|
||||
# ── 4. Install system dependencies (Tk for UI tests) ─────────────
|
||||
- name: Install system dependencies
|
||||
run: sudo apt-get install -y python3-tk
|
||||
|
||||
# ── 5. Install Python dependencies ────────────────────────────────
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install pytest pytest-cov
|
||||
|
||||
# ── 5. Syntax check — compile all .py files ────────────────────────
|
||||
# ── 6. Syntax check — compile all .py files ────────────────────────
|
||||
- name: Syntax check (py_compile)
|
||||
run: |
|
||||
echo "Running syntax check on all .py files..."
|
||||
@@ -45,7 +49,7 @@ jobs:
|
||||
| xargs python -m py_compile
|
||||
echo "Syntax check passed."
|
||||
|
||||
# ── 6. Run pytest ──────────────────────────────────────────────────
|
||||
# ── 7. Run pytest ──────────────────────────────────────────────────
|
||||
- name: Run tests (pytest)
|
||||
run: |
|
||||
pytest tests/ \
|
||||
|
||||
Reference in New Issue
Block a user