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
14 changes: 8 additions & 6 deletions .github/workflows/ci_build_library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ jobs:
uses: ./.github/workflows/_find_changes.yaml
secrets: inherit

build-wheels:
# For efficiency, skip this workflow if there were no code file changes.
if: >-
${{needs.find-changes.outputs.code == 'true'
|| github.event_name == 'workflow_dispatch'}}
name: ${{matrix.conf.os}}/${{matrix.conf.pyarch}}/py3${{matrix.conf.py}}
build-library:
name: Build for ${{matrix.conf.os}}/${{matrix.conf.pyarch}}/py3${{matrix.conf.py}}
needs: find-changes
runs-on: ${{matrix.conf.os}}
timeout-minutes: 30
Expand Down Expand Up @@ -90,6 +86,12 @@ jobs:
# Must use explicit test for true so it works when inputs.debug is null.
use-verbose: ${{github.event.inputs.debug == true}}
steps:
- if: >-
${{needs.find-changes.outputs.code == 'false'
&& github.event_name != 'workflow_dispatch'}}
name: Exit early if there were no changes to code files
run: exit 0
- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/ci_build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,20 @@ jobs:
uses: ./.github/workflows/_find_changes.yaml
secrets: inherit

build-wheels-skip:
if: >-
${{needs.find-changes.outputs.code == 'false'
&& github.event_name != 'workflow_dispatch'}}
# Important: the name must be the same as that of the build-wheels job.
name: Build & test wheels
needs: find-changes
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Exit with success if there were no changes to code files
run: exit 0

build-wheels:
# For efficiency, skip this workflow if there were no code file changes.
if: >-
${{needs.find-changes.outputs.code == 'true'
|| github.event_name == 'workflow_dispatch'}}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci_docker_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@ jobs:
secrets: inherit

build-and-test:
# For efficiency, skip this workflow if there were no code file changes.
if: >-
${{needs.find-changes.outputs.code == 'true'
|| github.event_name == 'workflow_dispatch'}}
name: Build and test Docker images
name: Build & test Docker images
needs: find-changes
runs-on: ubuntu-24.04
timeout-minutes: 30
env:
# The next environment variable is used by Docker.
BUILDKIT_PROGRESS: ${{inputs.debug && 'plain' || ''}}
steps:
- if: >-
${{needs.find-changes.outputs.code == 'false'
&& github.event_name != 'workflow_dispatch'}}
name: Exit early if there were no changes to code files
run: exit 0

- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci_format_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
secrets: inherit

check-format:
# For efficiency, skip this workflow if there were no Python file changes.
if: >-
${{needs.find-changes.outputs.python == 'true'
|| github.event_name == 'workflow_dispatch'}}
name: Python format check
needs: find-changes
runs-on: ubuntu-24.04
Expand All @@ -61,6 +57,12 @@ jobs:
# Add xtrace to SHELLOPTS for all Bash scripts when doing debug runs.
SHELLOPTS: ${{inputs.debug && 'xtrace' || '' }}
steps:
- if: >-
${{needs.find-changes.outputs.python == 'false'
&& github.event_name != 'workflow_dispatch'}}
name: Exit early if there were no changes to code files
run: exit 0

- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci_hardware_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
secrets: inherit

test-options:
# For efficiency, skip this workflow if there were no code file changes.
if: >-
${{needs.find-changes.outputs.code == 'true'
|| github.event_name == 'workflow_dispatch'}}
name: Test ${{matrix.hardware_opt}} + ${{matrix.parallel_opt}}
needs: find-changes
runs-on: ubuntu-24.04
Expand All @@ -67,6 +63,12 @@ jobs:
# Must use explicit test for true so it works when inputs.debug is null.
use-verbose: ${{github.event.inputs.debug == true}}
steps:
- if: >-
${{needs.find-changes.outputs.code == 'false'
&& github.event_name != 'workflow_dispatch'}}
name: Exit early if there were no changes to code files
run: exit 0

- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci_sanitizer_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
secrets: inherit

sanitizer-tests:
# For efficiency, skip this workflow if there were no code file changes.
if: >-
${{needs.find-changes.outputs.code == 'true'
|| github.event_name == 'workflow_dispatch'}}
name: Test with sanitizers
needs: find-changes
runs-on: ubuntu-24.04
Expand All @@ -65,6 +61,12 @@ jobs:
# Must use explicit test for true so it works when inputs.debug is null.
use-verbose: ${{github.event.inputs.debug == true}}
steps:
- if: >-
${{needs.find-changes.outputs.code == 'false'
&& github.event_name != 'workflow_dispatch'}}
name: Exit early if there were no changes to code files
run: exit 0

- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci_tcmalloc_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
secrets: inherit

tcmalloc-test:
# For efficiency, skip this workflow if there were no code file changes.
if: >-
${{needs.find-changes.outputs.code == 'true'
|| github.event_name == 'workflow_dispatch'}}
name: Test with TCMalloc
needs: find-changes
runs-on: ubuntu-24.04
Expand All @@ -61,6 +57,12 @@ jobs:
# Must use explicit test for true so it works when inputs.debug is null.
use-verbose: ${{github.event.inputs.debug == true}}
steps:
- if: >-
${{needs.find-changes.outputs.code == 'false'
&& github.event_name != 'workflow_dispatch'}}
name: Exit early if there were no changes to code files
run: exit 0

- name: Check out a copy of the git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
Loading