05/23 Fix ci.yml
This commit is contained in:
@@ -27,14 +27,18 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ 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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pytest pytest-cov
|
pip install pytest pytest-cov
|
||||||
|
|
||||||
# ── 5. Syntax check — compile all .py files ────────────────────────
|
# ── 6. Syntax check — compile all .py files ────────────────────────
|
||||||
- name: Syntax check (py_compile)
|
- name: Syntax check (py_compile)
|
||||||
run: |
|
run: |
|
||||||
echo "Running syntax check on all .py files..."
|
echo "Running syntax check on all .py files..."
|
||||||
@@ -45,7 +49,7 @@ jobs:
|
|||||||
| xargs python -m py_compile
|
| xargs python -m py_compile
|
||||||
echo "Syntax check passed."
|
echo "Syntax check passed."
|
||||||
|
|
||||||
# ── 6. Run pytest ──────────────────────────────────────────────────
|
# ── 7. Run pytest ──────────────────────────────────────────────────
|
||||||
- name: Run tests (pytest)
|
- name: Run tests (pytest)
|
||||||
run: |
|
run: |
|
||||||
pytest tests/ \
|
pytest tests/ \
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user