Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Jan 14, 2025
1 parent 8040eaf commit 9ff5b15
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,23 @@ concurrency:
group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

env:
RUN_MAIN_CI: ${{ (github.event.action == 'ready_for_review') || (github.event.pull_request.draft == false) }}

jobs:
# Jobs are listed in rough order of priority: if multiple jobs fail, the first job
# in the list should be the one that's most worth looking into
build-linux:
if: ${{ env.RUN_MAIN_CI }}
if: (github.event.action == 'ready_for_review') || (github.event.pull_request.draft == false)
uses: ./.github/workflows/pre-build.yml
with:
os: ubuntu-latest

build-windows:
if: ${{ env.RUN_MAIN_CI }}
if: (github.event.action == 'ready_for_review') || (github.event.pull_request.draft == false)
uses: ./.github/workflows/pre-build.yml
with:
os: windows-latest

test-docs:
if: ${{ env.RUN_MAIN_CI }}
if: (github.event.action == 'ready_for_review') || (github.event.pull_request.draft == false)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -73,7 +70,7 @@ jobs:
- run: ./mill -i docs.fastPages + docs.checkBrokenLinks

mac:
if: ${{ env.RUN_MAIN_CI }}
if: (github.event.action == 'ready_for_review') || (github.event.pull_request.draft == false)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9ff5b15

Please sign in to comment.