diff --git a/.github/workflows/repo-stats.yml b/.github/workflows/repo-stats.yml index 764552b4..ac3071d8 100644 --- a/.github/workflows/repo-stats.yml +++ b/.github/workflows/repo-stats.yml @@ -28,20 +28,15 @@ 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: 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"