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
7 changes: 6 additions & 1 deletion .github/workflows/drive-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
HEAD_SHA: ${{ inputs.sha }}
STATE: ${{ inputs.state }}
run: |
case "$STATE" in
pending) description='Test workflow started. Open Details for progress.' ;;
success) description='All required tests passed.' ;;
failure) description='Test run did not pass. Open Details for the job logs.' ;;
esac
gh api --silent --method POST "repos/$GITHUB_REPOSITORY/statuses/$HEAD_SHA" \
-f context='Live Drive tests' -f state="$STATE" \
-f context='Live Drive tests' -f state="$STATE" -f description="$description" \
-f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/attempts/$GITHUB_RUN_ATTEMPT"
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,17 @@ jobs:
python-version: ${{ matrix.pyv }}

- name: Install dependencies
id: install
run: python -m pip install -e '.[fsspec, tests]'

- name: Run offline tests
run: python -m pytest -m "not manual and not drive"

- name: Run live Drive tests
id: live
# An offline failure still fails the job, but the live suite can run.
if: >-
!cancelled() && steps.install.outcome == 'success' &&
github.actor != 'dependabot[bot]' &&
!startsWith(github.head_ref || github.ref_name, 'dependabot/') &&
((github.event_name == 'pull_request' &&
Expand Down
Loading