From 1576605afd06fc81f610d68e2647bb94e6a95e49 Mon Sep 17 00:00:00 2001 From: Robert Tidball Date: Thu, 1 Oct 2026 14:07:55 +1000 Subject: [PATCH 1/2] [ci] Fix repo stats workflow script path The workflow called scripts/update_repo_stats.py, but the script lives in .github/scripts/, so every scheduled run failed with "No such file or directory". --- .github/workflows/repo-stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/repo-stats.yml b/.github/workflows/repo-stats.yml index 764552b4..d5009a40 100644 --- a/.github/workflows/repo-stats.yml +++ b/.github/workflows/repo-stats.yml @@ -41,7 +41,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }} REPO: ${{ github.repository }} run: | - python scripts/update_repo_stats.py \ + python .github/scripts/update_repo_stats.py \ --token "$GITHUB_TOKEN" \ --repo "$REPO" \ --stats-dir ".github/stats" From c21ee5abc753211f05aac77377bfbc1964d82b4d Mon Sep 17 00:00:00 2001 From: Robert Tidball Date: Thu, 1 Oct 2026 14:36:24 +1000 Subject: [PATCH 2/2] [ci] Pin repo stats dependencies and install wheels only scripts/requirements.txt does not exist, so the job always took the fallback branch and installed unpinned requests and matplotlib, which allows setup scripts to run. Install pinned versions from wheels only. --- .github/workflows/repo-stats.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/repo-stats.yml b/.github/workflows/repo-stats.yml index d5009a40..ac3071d8 100644 --- a/.github/workflows/repo-stats.yml +++ b/.github/workflows/repo-stats.yml @@ -28,13 +28,8 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip - if [ -f scripts/requirements.txt ]; then - pip install -r scripts/requirements.txt - else - # Install minimal dependencies if requirements file doesn't exist - pip install requests matplotlib - fi + # Pinned, wheel-only installs: no setup scripts run and the versions do not drift. + pip install --only-binary :all: requests==2.34.2 matplotlib==3.10.7 - name: Update repository statistics env: