Skip to content

Commit be7d829

Browse files
committed
Test skipping more workflows
1 parent 8419c41 commit be7d829

11 files changed

+66
-40
lines changed

.github/workflows/check_diff.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check changed files
1+
name: PR analysis
22

33
on:
44
pull_request:
@@ -9,6 +9,7 @@ concurrency:
99

1010
jobs:
1111
check_diff:
12+
name: Check files changed
1213
runs-on: ubuntu-20.04
1314
steps:
1415
- name: Checkout code
@@ -19,9 +20,6 @@ jobs:
1920
env:
2021
BASE_REF: ${{ github.event.pull_request.base.ref }}
2122
HEAD_REF: ${{ github.event.pull_request.head.ref }}
22-
run: |
23-
echo "Base ref: ${BASE_REF}"
24-
echo "Head ref: ${HEAD_REF}"
2523
- name: Add forked repository as remote
2624
run: |
2725
git remote add fork ${{ github.event.pull_request.head.repo.clone_url }}
@@ -31,13 +29,13 @@ jobs:
3129
- name: Fetch head branch from forked repository
3230
run: |
3331
git fetch fork ${HEAD_REF}
34-
- name: Get changed files
32+
- name: Get files changed
3533
env:
3634
BASE_REF: ${{ github.event.pull_request.base.ref }}
3735
HEAD_REF: ${{ github.event.pull_request.head.ref }}
3836
run: |
3937
git diff --name-only --diff-filter=ACMRTUXB origin/${BASE_REF}..fork/${HEAD_REF} > check_diff.txt
40-
- name: Check changed files
38+
- name: Check files changed
4139
run: |
4240
if grep -v -E "^(docs|\.github)/" check_diff.txt; then
4341
echo "skip=false" >> ${GITHUB_OUTPUT}

.github/workflows/clang_sanitizers.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers
@@ -15,7 +18,7 @@ jobs:
1518
name: Clang UB sanitizer
1619
runs-on: ubuntu-22.04
1720
container: ubuntu:23.10
18-
if: github.event.pull_request.draft == false
21+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
1922
env:
2023
CC: clang
2124
CXX: clang++
@@ -81,7 +84,7 @@ jobs:
8184
name: Clang thread sanitizer
8285
runs-on: ubuntu-22.04
8386
container: ubuntu:23.10
84-
if: github.event.pull_request.draft == false
87+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
8588
env:
8689
CC: clang
8790
CXX: clang++

.github/workflows/clang_tidy.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy
@@ -18,7 +21,7 @@ jobs:
1821
name: clang-tidy-${{ matrix.dim }}D
1922
runs-on: ubuntu-22.04
2023
timeout-minutes: 180
21-
if: github.event.pull_request.draft == false
24+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
2225
steps:
2326
- uses: actions/checkout@v4
2427
- name: install dependencies

.github/workflows/codeql.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: 🔍 CodeQL
22

33
on:
44
push:
5-
branches: [ "development" ]
6-
pull_request:
7-
branches: [ "development" ]
5+
branches:
6+
- "development"
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811
schedule:
912
- cron: "27 3 * * 0"
1013

@@ -16,7 +19,7 @@ jobs:
1619
analyze:
1720
name: Analyze
1821
runs-on: ubuntu-latest
19-
if: github.event.pull_request.draft == false
22+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
2023
permissions:
2124
actions: read
2225
contents: read

.github/workflows/cuda.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
87
workflow_run:
9-
workflows: [Check changed files]
10-
types: [completed]
8+
workflows: [PR analysis]
9+
types:
10+
- completed
1111

1212
concurrency:
1313
group: ${{ github.ref }}-${{ github.head_ref }}-cuda

.github/workflows/hip.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-hip
@@ -17,7 +20,7 @@ jobs:
1720
env:
1821
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
1922
CMAKE_GENERATOR: Ninja
20-
if: github.event.pull_request.draft == false
23+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
2124
steps:
2225
- uses: actions/checkout@v4
2326
- name: install dependencies
@@ -77,7 +80,7 @@ jobs:
7780
env:
7881
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
7982
CMAKE_GENERATOR: Ninja
80-
if: github.event.pull_request.draft == false
83+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
8184
steps:
8285
- uses: actions/checkout@v4
8386
- name: install dependencies

.github/workflows/insitu.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
@@ -14,7 +17,7 @@ jobs:
1417
sensei:
1518
name: SENSEI
1619
runs-on: ubuntu-20.04
17-
if: github.event.pull_request.draft == false
20+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
1821
env:
1922
CXX: clang++
2023
CC: clang
@@ -40,7 +43,7 @@ jobs:
4043
ascent:
4144
name: Ascent
4245
runs-on: ubuntu-20.04
43-
if: github.event.pull_request.draft == false
46+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
4447
env:
4548
CXX: g++
4649
CC: gcc
@@ -80,7 +83,7 @@ jobs:
8083
catalyst:
8184
name: Catalyst
8285
runs-on: ubuntu-22.04
83-
if: github.event.pull_request.draft == false
86+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
8487
env:
8588
CXX: g++
8689
CC: gcc

.github/workflows/intel.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-intel
@@ -16,7 +19,7 @@ jobs:
1619
build_icc:
1720
name: oneAPI ICC SP&DP
1821
runs-on: ubuntu-20.04
19-
if: github.event.pull_request.draft == false
22+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
2023
# For oneAPI, Ninja is slower than the default:
2124
#env:
2225
# CMAKE_GENERATOR: Ninja
@@ -84,7 +87,7 @@ jobs:
8487
CXXFLAGS: "-Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
8588
# For oneAPI, Ninja is slower than the default:
8689
# CMAKE_GENERATOR: Ninja
87-
if: github.event.pull_request.draft == false
90+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
8891
steps:
8992
- uses: actions/checkout@v4
9093
- name: install dependencies
@@ -148,7 +151,7 @@ jobs:
148151
CXXFLAGS: "-Werror -Wno-tautological-constant-compare"
149152
# For oneAPI, Ninja is slower than the default:
150153
# CMAKE_GENERATOR: Ninja
151-
if: github.event.pull_request.draft == false
154+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
152155
steps:
153156
- uses: actions/checkout@v4
154157
- name: install dependencies

.github/workflows/macos.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-macos
@@ -14,7 +17,7 @@ jobs:
1417
build_appleclang:
1518
name: AppleClang
1619
runs-on: macos-latest
17-
if: github.event.pull_request.draft == false
20+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
1821
env:
1922
CXXFLAGS: "-Werror -Wno-error=pass-failed"
2023
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: TRUE

.github/workflows/ubuntu.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-ubuntu
@@ -14,7 +17,7 @@ jobs:
1417
build_cxxminimal:
1518
name: GCC Minimal w/o MPI
1619
runs-on: ubuntu-20.04
17-
if: github.event.pull_request.draft == false
20+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
1821
env:
1922
CXXFLAGS: "-Werror"
2023
steps:
@@ -52,7 +55,7 @@ jobs:
5255
build_1D_2D:
5356
name: GCC 1D & 2D w/ MPI, QED tools
5457
runs-on: ubuntu-22.04
55-
if: github.event.pull_request.draft == false
58+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
5659
env:
5760
CXXFLAGS: "-Werror"
5861
CXX: "g++-12"
@@ -99,7 +102,7 @@ jobs:
99102
build_3D_sp:
100103
name: GCC 3D & RZ w/ MPI, single precision
101104
runs-on: ubuntu-22.04
102-
if: github.event.pull_request.draft == false
105+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
103106
env:
104107
CXX: "g++-12"
105108
CC: "gcc-12"
@@ -146,7 +149,7 @@ jobs:
146149
build_gcc_ablastr:
147150
name: GCC ABLASTR w/o MPI
148151
runs-on: ubuntu-20.04
149-
if: github.event.pull_request.draft == false
152+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
150153
env:
151154
CMAKE_GENERATOR: Ninja
152155
CXXFLAGS: "-Werror"
@@ -182,7 +185,7 @@ jobs:
182185
build_pyfull:
183186
name: Clang pywarpx
184187
runs-on: ubuntu-20.04
185-
if: github.event.pull_request.draft == false
188+
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
186189
env:
187190
CC: clang
188191
CXX: clang++

.github/workflows/windows.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
push:
55
branches:
66
- "development"
7-
pull_request:
7+
workflow_run:
8+
workflows: [PR analysis]
9+
types:
10+
- completed
811

912
concurrency:
1013
group: ${{ github.ref }}-${{ github.head_ref }}-windows
@@ -16,7 +19,7 @@ jobs:
1619
runs-on: windows-latest
1720
# disabled due to issues in #5230
1821
if: 0
19-
#if: github.event.pull_request.draft == false
22+
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
2023
steps:
2124
- uses: actions/checkout@v4
2225
- uses: actions/setup-python@v5
@@ -67,7 +70,8 @@ jobs:
6770
build_win_clang:
6871
name: Clang C++17 w/ OMP w/o MPI
6972
runs-on: windows-2019
70-
if: github.event.pull_request.draft == false
73+
if: 0
74+
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
7175
steps:
7276
- uses: actions/checkout@v4
7377
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)