Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
6 changes: 4 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ and the `documentation guide <docs/README.md>`_ 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
Expand Down
Loading