From c18e5d2c6ab23ed5db8f133620f693e69a880e80 Mon Sep 17 00:00:00 2001 From: Sebastiano Romi Date: Mon, 5 Oct 2026 11:33:39 +0200 Subject: [PATCH] Fix runner context scope and lint all GitHub workflows --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/cross-platform-ci.yml | 3 ++- .github/workflows/cross-platform-release.yml | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec37853..8ee52a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,13 @@ jobs: - uses: actions/setup-python@v6 with: python-version: '3.12' + cache: pip + cache-dependency-path: .github/workflows/ci.yml + + - name: Validate GitHub Actions workflows + run: | + python -m pip install actionlint-py==1.7.12.25 + actionlint -shellcheck= -pyflakes= - name: Parse PowerShell source shell: pwsh diff --git a/.github/workflows/cross-platform-ci.yml b/.github/workflows/cross-platform-ci.yml index c93c928..08ed41e 100644 --- a/.github/workflows/cross-platform-ci.yml +++ b/.github/workflows/cross-platform-ci.yml @@ -24,7 +24,6 @@ jobs: timeout-minutes: 20 env: QT_QPA_PLATFORM: offscreen - PACE_CONTROLLER_DATA_DIR: ${{ runner.temp }}/pace-controller-data steps: - uses: actions/checkout@v6 @@ -47,6 +46,8 @@ jobs: run: python -m pip install -e . -r requirements-ci.txt - name: Compile and test + env: + PACE_CONTROLLER_DATA_DIR: ${{ runner.temp }}/pace-controller-data working-directory: cross_platform run: | python -m compileall -q src diff --git a/.github/workflows/cross-platform-release.yml b/.github/workflows/cross-platform-release.yml index 54b55fe..d371c60 100644 --- a/.github/workflows/cross-platform-release.yml +++ b/.github/workflows/cross-platform-release.yml @@ -24,7 +24,6 @@ jobs: timeout-minutes: 30 env: QT_QPA_PLATFORM: offscreen - PACE_CONTROLLER_DATA_DIR: ${{ runner.temp }}/pace-controller-data PYTHONPATH: cross_platform/src outputs: version: ${{ steps.prepare.outputs.version }} @@ -57,6 +56,8 @@ jobs: echo "Preparing PACE Controller v$VERSION" - name: Render and validate the versioned interface + env: + PACE_CONTROLLER_DATA_DIR: ${{ runner.temp }}/pace-controller-data run: | python -m pace_controller --language en --screenshot cross_platform/docs/pace_controller_gui.png python -c "from PySide6.QtGui import QImage; i=QImage('cross_platform/docs/pace_controller_gui.png'); assert not i.isNull() and i.width() >= 1000 and i.height() >= 700, (i.width(), i.height())" @@ -71,6 +72,8 @@ jobs: test -s cross_platform/docs/PACE_Controller_Manual.pdf - name: Validate prepared release + env: + PACE_CONTROLLER_DATA_DIR: ${{ runner.temp }}/pace-controller-data run: | VERSION="${{ steps.prepare.outputs.version }}" python tests/test_project.py