Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CI: Add more skip conditions #26715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
Loading
from
Open
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
29 changes: 24 additions & 5 deletions 29 .github/workflows/circleci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
# To enable this workflow on a fork, comment out:
#
# if: github.repository == 'numpy/numpy'

name: CircleCI artifact redirector

on: [status]

permissions: read-all

jobs:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[circle skip]') && !contains(github.event.head_commit.message, '[skip circle]') && github.event.context == 'ci/circleci: build'"
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[circle skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip circle]') &&
github.event.context == 'ci/circleci: build'
name: Run CircleCI artifacts redirector
permissions:
statuses: write
Expand Down
23 changes: 23 additions & 0 deletions 23 .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,32 @@ permissions:
contents: read

jobs:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
analyze:
name: Analyze
runs-on: ubuntu-latest
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[codeql skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip codeql]')
permissions:
actions: read
contents: read
Expand Down
25 changes: 23 additions & 2 deletions 25 .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,31 @@ permissions:
contents: read # to fetch code (actions/checkout)

jobs:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
cygwin_build_test:
runs-on: windows-latest
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[cygwin skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip cygwin]')
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down
25 changes: 23 additions & 2 deletions 25 .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,32 @@ permissions:
contents: read # to fetch code (actions/checkout)

jobs:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
build-wasm-emscripten:
name: Build NumPy distribution for Pyodide
runs-on: ubuntu-22.04
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[wasm skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip wasm]')
env:
PYODIDE_VERSION: 0.26.0
# PYTHON_VERSION and EMSCRIPTEN_VERSION are determined by PYODIDE_VERSION.
Expand Down
25 changes: 23 additions & 2 deletions 25 .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ permissions:
contents: read # to fetch code (actions/checkout)

jobs:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
lint:
# To enable this job and subsequent jobs on a fork, comment out:
if: github.repository == 'numpy/numpy' && github.event_name != 'push'
Expand All @@ -48,8 +67,10 @@ jobs:
python tools/linter.py --branch origin/${{ github.base_ref }}

smoke_test:
# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[linux skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip linux]')
runs-on: ubuntu-latest
env:
MESON_ARGS: "-Dallow-noblas=true -Dcpu-baseline=none -Dcpu-dispatch=none"
Expand Down
65 changes: 55 additions & 10 deletions 65 .github/workflows/linux_blas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,30 @@ permissions:
contents: read # to fetch code (actions/checkout)

jobs:
openblas32_stable_nightly:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
openblas32_stable_nightly:
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -118,7 +139,10 @@ jobs:


openblas_no_pkgconfig_fedora:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
container: fedora:39
name: "OpenBLAS (Fedora, no pkg-config, LP64/ILP64)"
Expand Down Expand Up @@ -153,7 +177,10 @@ jobs:


flexiblas_fedora:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
container: fedora:39
name: "FlexiBLAS (LP64, ILP64 on Fedora)"
Expand Down Expand Up @@ -188,7 +215,10 @@ jobs:


openblas_cmake:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
name: "OpenBLAS with CMake"
steps:
Expand Down Expand Up @@ -216,7 +246,10 @@ jobs:


netlib-debian:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
name: "Debian libblas/liblapack"
steps:
Expand Down Expand Up @@ -245,7 +278,10 @@ jobs:


netlib-split:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
container: opensuse/tumbleweed
name: "OpenSUSE Netlib BLAS/LAPACK"
Expand Down Expand Up @@ -276,7 +312,10 @@ jobs:


mkl:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
name: "MKL (LP64, ILP64, SDL)"
steps:
Expand Down Expand Up @@ -339,7 +378,10 @@ jobs:
run: spin test -- numpy/linalg

blis:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
name: "BLIS"
steps:
Expand Down Expand Up @@ -375,7 +417,10 @@ jobs:
run: spin test -- numpy/linalg

atlas:
if: github.repository == 'numpy/numpy'
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
runs-on: ubuntu-latest
name: "ATLAS"
steps:
Expand Down
25 changes: 23 additions & 2 deletions 25 .github/workflows/linux_compiler_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,30 @@ permissions:
contents: read # to fetch code (actions/checkout)

jobs:
clang_sanitizers:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
clang_sanitizers:
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[sanitizer skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip sanitizer]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
25 changes: 23 additions & 2 deletions 25 .github/workflows/linux_musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,31 @@ permissions:


jobs:
musllinux_x86_64:
get_commit_tags:
name: Get commit tags
runs-on: ubuntu-latest
# To enable this workflow on a fork, comment out:
if: github.repository == 'numpy/numpy'
if: "github.repository == 'numpy/numpy'"
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get commit message
id: commit_message
run: |
set -xe
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs || true)
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
echo github.ref ${{ github.ref }}
musllinux_x86_64:
runs-on: ubuntu-latest
needs: get_commit_tags
if: >-
!contains(needs.get_commit_tags.outputs.message, '[musl skip]') &&
!contains(needs.get_commit_tags.outputs.message, '[skip musl]')
container:
# Use container used for building musllinux wheels
# it has git installed, all the pythons, etc
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.