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