From a1a2fa76201b00e9e06988c08b676308bb02c9b3 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Fri, 4 Dec 2026 17:59:51 -0800 Subject: [PATCH] Run the live Drive tests on one job per OS All 15 matrix jobs ran the live suite against one Drive account, so CI kept running out of Drive's per-minute quota. The offline suite still runs on every job. Ubuntu 3.11 keeps the live run on the oldest supported fsspec. max-parallel only spread the live load, so it goes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/test.yml | 11 ++++++----- CONTRIBUTING.rst | 6 ++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76b1a4cd..404fad30 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,13 +21,14 @@ jobs: strategy: fail-fast: false - max-parallel: 3 matrix: - # Put pyv before os so GitHub creates the Python 3.11 jobs for Ubuntu, - # macOS, and Windows first. With three parallel slots, this lets us - # catch platform-specific failures early. pyv: ["3.11", "3.12", "3.13", "3.14", "3.15"] os: [ubuntu-latest, macos-latest, windows-latest] + # Live tests share one Drive account's quota, so they run once per OS. + include: + - {os: ubuntu-latest, pyv: "3.11", live: true} + - {os: macos-latest, pyv: "3.13", live: true} + - {os: windows-latest, pyv: "3.15", live: true} steps: - uses: actions/checkout@v7 @@ -60,7 +61,7 @@ jobs: run: python -m pytest -m "not manual and not drive" - name: Run live Drive tests - if: ${{ !cancelled() && steps.install.outcome == 'success' }} + if: ${{ matrix.live && !cancelled() && steps.install.outcome == 'success' }} shell: bash env: GDRIVE_USER_CREDENTIALS_DATA: ${{ secrets.GDRIVE_USER_CREDENTIALS_DATA }} diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 4fa7cae3..73bb0c4d 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -20,9 +20,11 @@ and the `documentation guide `_ to preview the site. Live Drive tests for external pull requests ------------------------------------------- -Each matrix job runs the offline suite, then the live suite. Fork and +Every matrix job runs the offline suite. Three jobs, one per OS (Ubuntu on +Python 3.11, macOS on 3.13, Windows on 3.15), then run the live suite. Fork and Dependabot PRs normally have no repository Drive credential, so the live -step fails. Their offline results are visible in the same jobs. +step fails in those three jobs. Their offline results are visible in every +job. To land a reviewed external change, a maintainer can open a PR from a branch in this repository. The required ``Live Drive tests`` check passes