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

Commit b6521f8

Browse filesBrowse files
committed
MAINT,BUG,CI: Explicitly take commit message
[skip circle] [skip linux] [skip nixblas] [skip sanitizer] [skip musl] [skip qemu] [skip simd] [skip macos] [skip mypy] [skip wingha] [skip azp] [skip cirrus]
1 parent eeb563b commit b6521f8
Copy full SHA for b6521f8

File tree

Expand file treeCollapse file tree

10 files changed

+270
-26
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+270
-26
lines changed

‎.github/workflows/cygwin.yml

Copy file name to clipboardExpand all lines: .github/workflows/cygwin.yml
+23-1Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,32 @@ permissions:
1313
contents: read # to fetch code (actions/checkout)
1414

1515
jobs:
16+
get_commit_tags:
17+
name: Get commit tags
18+
runs-on: ubuntu-latest
19+
if: "github.repository == 'numpy/numpy'"
20+
outputs:
21+
message: ${{ steps.commit_message.outputs.message }}
22+
steps:
23+
- name: Checkout project
24+
uses: actions/checkout@v4
25+
# Gets the correct commit message for pull request
26+
with:
27+
ref: ${{ github.event.pull_request.head.sha }}
28+
- name: Get commit message
29+
id: commit_message
30+
run: |
31+
set -xe
32+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
33+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
34+
echo github.ref ${{ github.ref }}
1635
cygwin_build_test:
1736
runs-on: windows-latest
1837
# To enable this workflow on a fork, comment out:
19-
if: github.repository == 'numpy/numpy'
38+
needs: get_commit_tags
39+
if: >-
40+
!contains(needs.get_commit_tags.outputs.message, '[cygwin skip]') &&
41+
!contains(needs.get_commit_tags.outputs.message, '[skip cygwin]')
2042
steps:
2143
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2244
with:

‎.github/workflows/linux.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux.yml
+23-2Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,25 @@ permissions:
2727
contents: read # to fetch code (actions/checkout)
2828

2929
jobs:
30+
get_commit_tags:
31+
name: Get commit tags
32+
runs-on: ubuntu-latest
33+
if: "github.repository == 'numpy/numpy'"
34+
outputs:
35+
message: ${{ steps.commit_message.outputs.message }}
36+
steps:
37+
- name: Checkout project
38+
uses: actions/checkout@v4
39+
# Gets the correct commit message for pull request
40+
with:
41+
ref: ${{ github.event.pull_request.head.sha }}
42+
- name: Get commit message
43+
id: commit_message
44+
run: |
45+
set -xe
46+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
47+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
48+
echo github.ref ${{ github.ref }}
3049
lint:
3150
# To enable this job and subsequent jobs on a fork, comment out:
3251
if: github.repository == 'numpy/numpy' && github.event_name != 'push'
@@ -48,8 +67,10 @@ jobs:
4867
python tools/linter.py --branch origin/${{ github.base_ref }}
4968

5069
smoke_test:
51-
# To enable this job on a fork, comment out:
52-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[linux skip]') && !contains(github.event.head_commit.message, '[skip linux]')"
70+
needs: get_commit_tags
71+
if: >-
72+
!contains(needs.get_commit_tags.outputs.message, '[linux skip]') &&
73+
!contains(needs.get_commit_tags.outputs.message, '[skip linux]')
5374
runs-on: ubuntu-latest
5475
env:
5576
MESON_ARGS: "-Dallow-noblas=true -Dcpu-baseline=none -Dcpu-dispatch=none"

‎.github/workflows/linux_blas.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux_blas.yml
+55-10Lines changed: 55 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,30 @@ permissions:
5353
contents: read # to fetch code (actions/checkout)
5454

5555
jobs:
56+
get_commit_tags:
57+
name: Get commit tags
58+
runs-on: ubuntu-latest
59+
if: "github.repository == 'numpy/numpy'"
60+
outputs:
61+
message: ${{ steps.commit_message.outputs.message }}
62+
steps:
63+
- name: Checkout project
64+
uses: actions/checkout@v4
65+
# Gets the correct commit message for pull request
66+
with:
67+
ref: ${{ github.event.pull_request.head.sha }}
68+
- name: Get commit message
69+
id: commit_message
70+
run: |
71+
set -xe
72+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
73+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
74+
echo github.ref ${{ github.ref }}
5675
openblas32_stable_nightly:
57-
# To enable this workflow on a fork, comment out:
58-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
76+
needs: get_commit_tags
77+
if: >-
78+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
79+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
5980
runs-on: ubuntu-latest
6081
strategy:
6182
fail-fast: false
@@ -118,7 +139,10 @@ jobs:
118139
119140
120141
openblas_no_pkgconfig_fedora:
121-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
142+
needs: get_commit_tags
143+
if: >-
144+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
145+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
122146
runs-on: ubuntu-latest
123147
container: fedora:39
124148
name: "OpenBLAS (Fedora, no pkg-config, LP64/ILP64)"
@@ -153,7 +177,10 @@ jobs:
153177

154178

155179
flexiblas_fedora:
156-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
180+
needs: get_commit_tags
181+
if: >-
182+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
183+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
157184
runs-on: ubuntu-latest
158185
container: fedora:39
159186
name: "FlexiBLAS (LP64, ILP64 on Fedora)"
@@ -188,7 +215,10 @@ jobs:
188215

189216

190217
openblas_cmake:
191-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
218+
needs: get_commit_tags
219+
if: >-
220+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
221+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
192222
runs-on: ubuntu-latest
193223
name: "OpenBLAS with CMake"
194224
steps:
@@ -216,7 +246,10 @@ jobs:
216246

217247

218248
netlib-debian:
219-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
249+
needs: get_commit_tags
250+
if: >-
251+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
252+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
220253
runs-on: ubuntu-latest
221254
name: "Debian libblas/liblapack"
222255
steps:
@@ -245,7 +278,10 @@ jobs:
245278
246279
247280
netlib-split:
248-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
281+
needs: get_commit_tags
282+
if: >-
283+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
284+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
249285
runs-on: ubuntu-latest
250286
container: opensuse/tumbleweed
251287
name: "OpenSUSE Netlib BLAS/LAPACK"
@@ -276,7 +312,10 @@ jobs:
276312
277313
278314
mkl:
279-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
315+
needs: get_commit_tags
316+
if: >-
317+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
318+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
280319
runs-on: ubuntu-latest
281320
name: "MKL (LP64, ILP64, SDL)"
282321
steps:
@@ -339,7 +378,10 @@ jobs:
339378
run: spin test -- numpy/linalg
340379

341380
blis:
342-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
381+
needs: get_commit_tags
382+
if: >-
383+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
384+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
343385
runs-on: ubuntu-latest
344386
name: "BLIS"
345387
steps:
@@ -375,7 +417,10 @@ jobs:
375417
run: spin test -- numpy/linalg
376418

377419
atlas:
378-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[nixblas skip]') && !contains(github.event.head_commit.message, '[skip nixblas]')"
420+
needs: get_commit_tags
421+
if: >-
422+
!contains(needs.get_commit_tags.outputs.message, '[nixblas skip]') &&
423+
!contains(needs.get_commit_tags.outputs.message, '[skip nixblas]')
379424
runs-on: ubuntu-latest
380425
name: "ATLAS"
381426
steps:

‎.github/workflows/linux_compiler_sanitizers.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux_compiler_sanitizers.yml
+23-2Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,30 @@ permissions:
2121
contents: read # to fetch code (actions/checkout)
2222

2323
jobs:
24+
get_commit_tags:
25+
name: Get commit tags
26+
runs-on: ubuntu-latest
27+
if: "github.repository == 'numpy/numpy'"
28+
outputs:
29+
message: ${{ steps.commit_message.outputs.message }}
30+
steps:
31+
- name: Checkout project
32+
uses: actions/checkout@v4
33+
# Gets the correct commit message for pull request
34+
with:
35+
ref: ${{ github.event.pull_request.head.sha }}
36+
- name: Get commit message
37+
id: commit_message
38+
run: |
39+
set -xe
40+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
41+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
42+
echo github.ref ${{ github.ref }}
2443
clang_sanitizers:
25-
# To enable this workflow on a fork, comment out:
26-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[sanitizer skip]') && !contains(github.event.head_commit.message, '[skip sanitizer]')"
44+
needs: get_commit_tags
45+
if: >-
46+
!contains(needs.get_commit_tags.outputs.message, '[sanitizer skip]') &&
47+
!contains(needs.get_commit_tags.outputs.message, '[skip sanitizer]')
2748
runs-on: ubuntu-latest
2849
steps:
2950
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

‎.github/workflows/linux_musl.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux_musl.yml
+23-1Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,32 @@ permissions:
1717

1818

1919
jobs:
20+
get_commit_tags:
21+
name: Get commit tags
22+
runs-on: ubuntu-latest
23+
if: "github.repository == 'numpy/numpy'"
24+
outputs:
25+
message: ${{ steps.commit_message.outputs.message }}
26+
steps:
27+
- name: Checkout project
28+
uses: actions/checkout@v4
29+
# Gets the correct commit message for pull request
30+
with:
31+
ref: ${{ github.event.pull_request.head.sha }}
32+
- name: Get commit message
33+
id: commit_message
34+
run: |
35+
set -xe
36+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
37+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
38+
echo github.ref ${{ github.ref }}
2039
musllinux_x86_64:
2140
runs-on: ubuntu-latest
2241
# To enable this workflow on a fork, comment out:
23-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[musl skip]') && !contains(github.event.head_commit.message, '[skip musl]')"
42+
needs: get_commit_tags
43+
if: >-
44+
!contains(needs.get_commit_tags.outputs.message, '[musl skip]') &&
45+
!contains(needs.get_commit_tags.outputs.message, '[skip musl]')
2446
container:
2547
# Use container used for building musllinux wheels
2648
# it has git installed, all the pythons, etc

‎.github/workflows/linux_qemu.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux_qemu.yml
+23-1Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,31 @@ permissions:
2727
contents: read
2828

2929
jobs:
30+
get_commit_tags:
31+
name: Get commit tags
32+
runs-on: ubuntu-latest
33+
if: "github.repository == 'numpy/numpy'"
34+
outputs:
35+
message: ${{ steps.commit_message.outputs.message }}
36+
steps:
37+
- name: Checkout project
38+
uses: actions/checkout@v4
39+
# Gets the correct commit message for pull request
40+
with:
41+
ref: ${{ github.event.pull_request.head.sha }}
42+
- name: Get commit message
43+
id: commit_message
44+
run: |
45+
set -xe
46+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
47+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
48+
echo github.ref ${{ github.ref }}
3049
linux_qemu:
3150
# To enable this workflow on a fork, comment out:
32-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[qemu skip]') && !contains(github.event.head_commit.message, '[skip qemu]')"
51+
needs: get_commit_tags
52+
if: >-
53+
!contains(needs.get_commit_tags.outputs.message, '[qemu skip]') &&
54+
!contains(needs.get_commit_tags.outputs.message, '[skip qemu]')
3355
runs-on: ubuntu-22.04
3456
continue-on-error: true
3557
strategy:

‎.github/workflows/linux_simd.yml

Copy file name to clipboardExpand all lines: .github/workflows/linux_simd.yml
+23-1Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,31 @@ permissions:
5151
contents: read # to fetch code (actions/checkout)
5252

5353
jobs:
54+
get_commit_tags:
55+
name: Get commit tags
56+
runs-on: ubuntu-latest
57+
if: "github.repository == 'numpy/numpy'"
58+
outputs:
59+
message: ${{ steps.commit_message.outputs.message }}
60+
steps:
61+
- name: Checkout project
62+
uses: actions/checkout@v4
63+
# Gets the correct commit message for pull request
64+
with:
65+
ref: ${{ github.event.pull_request.head.sha }}
66+
- name: Get commit message
67+
id: commit_message
68+
run: |
69+
set -xe
70+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
71+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
72+
echo github.ref ${{ github.ref }}
5473
baseline_only:
5574
# To enable this workflow on a fork, comment out:
56-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[simd skip]') && !contains(github.event.head_commit.message, '[skip simd]')"
75+
needs: get_commit_tags
76+
if: >-
77+
!contains(needs.get_commit_tags.outputs.message, '[simd skip]') &&
78+
!contains(needs.get_commit_tags.outputs.message, '[skip simd]')
5779
runs-on: ubuntu-latest
5880
env:
5981
MESON_ARGS: "-Dallow-noblas=true -Dcpu-dispatch=none"

‎.github/workflows/macos.yml

Copy file name to clipboardExpand all lines: .github/workflows/macos.yml
+27-3Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,31 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
jobs:
20+
get_commit_tags:
21+
name: Get commit tags
22+
runs-on: ubuntu-latest
23+
if: "github.repository == 'numpy/numpy'"
24+
outputs:
25+
message: ${{ steps.commit_message.outputs.message }}
26+
steps:
27+
- name: Checkout project
28+
uses: actions/checkout@v4
29+
# Gets the correct commit message for pull request
30+
with:
31+
ref: ${{ github.event.pull_request.head.sha }}
32+
- name: Get commit message
33+
id: commit_message
34+
run: |
35+
set -xe
36+
COMMIT_TAGS=$(git log --format=%B -n 1 | grep -o '\[[^]]*\]' | tr '\n' ' ' | xargs)
37+
echo "message=$COMMIT_TAGS" >> $GITHUB_OUTPUT
38+
echo github.ref ${{ github.ref }}
2039
x86_conda:
2140
name: macOS x86-64 conda
22-
# To enable this workflow on a fork, comment out:
23-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[macos skip]') && !contains(github.event.head_commit.message, '[skip macos]')"
41+
needs: get_commit_tags
42+
if: >-
43+
!contains(needs.get_commit_tags.outputs.message, '[macos skip]') &&
44+
!contains(needs.get_commit_tags.outputs.message, '[skip macos]')
2445
runs-on: macos-13
2546
strategy:
2647
fail-fast: false
@@ -104,7 +125,10 @@ jobs:
104125
105126
accelerate:
106127
name: Accelerate (LP64, ILP64) - ${{ matrix.build_runner[1] }}
107-
if: "github.repository == 'numpy/numpy' && !contains(github.event.head_commit.message, '[macos skip]') && !contains(github.event.head_commit.message, '[skip macos]')"
128+
needs: get_commit_tags
129+
if: >-
130+
!contains(needs.get_commit_tags.outputs.message, '[macos skip]') &&
131+
!contains(needs.get_commit_tags.outputs.message, '[skip macos]')
108132
runs-on: ${{ matrix.build_runner[0] }}
109133
strategy:
110134
fail-fast: false

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.