Skip to content

Commit

Permalink
Test skipping more workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 18, 2024
1 parent 8419c41 commit be7d829
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 40 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/check_diff.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check changed files
name: PR analysis

on:
pull_request:
Expand All @@ -9,6 +9,7 @@ concurrency:

jobs:
check_diff:
name: Check files changed
runs-on: ubuntu-20.04
steps:
- name: Checkout code
Expand All @@ -19,9 +20,6 @@ jobs:
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
echo "Base ref: ${BASE_REF}"
echo "Head ref: ${HEAD_REF}"
- name: Add forked repository as remote
run: |
git remote add fork ${{ github.event.pull_request.head.repo.clone_url }}
Expand All @@ -31,13 +29,13 @@ jobs:
- name: Fetch head branch from forked repository
run: |
git fetch fork ${HEAD_REF}
- name: Get changed files
- name: Get files changed
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
git diff --name-only --diff-filter=ACMRTUXB origin/${BASE_REF}..fork/${HEAD_REF} > check_diff.txt
- name: Check changed files
- name: Check files changed
run: |
if grep -v -E "^(docs|\.github)/" check_diff.txt; then
echo "skip=false" >> ${GITHUB_OUTPUT}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/clang_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers
Expand All @@ -15,7 +18,7 @@ jobs:
name: Clang UB sanitizer
runs-on: ubuntu-22.04
container: ubuntu:23.10
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CC: clang
CXX: clang++
Expand Down Expand Up @@ -81,7 +84,7 @@ jobs:
name: Clang thread sanitizer
runs-on: ubuntu-22.04
container: ubuntu:23.10
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CC: clang
CXX: clang++
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy
Expand All @@ -18,7 +21,7 @@ jobs:
name: clang-tidy-${{ matrix.dim }}D
runs-on: ubuntu-22.04
timeout-minutes: 180
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: 🔍 CodeQL

on:
push:
branches: [ "development" ]
pull_request:
branches: [ "development" ]
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
schedule:
- cron: "27 3 * * 0"

Expand All @@ -16,7 +19,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
permissions:
actions: read
contents: read
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [Check changed files]
types: [completed]
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-cuda
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-hip
Expand All @@ -17,7 +20,7 @@ jobs:
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/insitu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
Expand All @@ -14,7 +17,7 @@ jobs:
sensei:
name: SENSEI
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXX: clang++
CC: clang
Expand All @@ -40,7 +43,7 @@ jobs:
ascent:
name: Ascent
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXX: g++
CC: gcc
Expand Down Expand Up @@ -80,7 +83,7 @@ jobs:
catalyst:
name: Catalyst
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXX: g++
CC: gcc
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-intel
Expand All @@ -16,7 +19,7 @@ jobs:
build_icc:
name: oneAPI ICC SP&DP
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
# For oneAPI, Ninja is slower than the default:
#env:
# CMAKE_GENERATOR: Ninja
Expand Down Expand Up @@ -84,7 +87,7 @@ jobs:
CXXFLAGS: "-Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
# For oneAPI, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -148,7 +151,7 @@ jobs:
CXXFLAGS: "-Werror -Wno-tautological-constant-compare"
# For oneAPI, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-macos
Expand All @@ -14,7 +17,7 @@ jobs:
build_appleclang:
name: AppleClang
runs-on: macos-latest
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXXFLAGS: "-Werror -Wno-error=pass-failed"
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: TRUE
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ubuntu
Expand All @@ -14,7 +17,7 @@ jobs:
build_cxxminimal:
name: GCC Minimal w/o MPI
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXXFLAGS: "-Werror"
steps:
Expand Down Expand Up @@ -52,7 +55,7 @@ jobs:
build_1D_2D:
name: GCC 1D & 2D w/ MPI, QED tools
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXXFLAGS: "-Werror"
CXX: "g++-12"
Expand Down Expand Up @@ -99,7 +102,7 @@ jobs:
build_3D_sp:
name: GCC 3D & RZ w/ MPI, single precision
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CXX: "g++-12"
CC: "gcc-12"
Expand Down Expand Up @@ -146,7 +149,7 @@ jobs:
build_gcc_ablastr:
name: GCC ABLASTR w/o MPI
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CMAKE_GENERATOR: Ninja
CXXFLAGS: "-Werror"
Expand Down Expand Up @@ -182,7 +185,7 @@ jobs:
build_pyfull:
name: Clang pywarpx
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
env:
CC: clang
CXX: clang++
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- "development"
pull_request:
workflow_run:
workflows: [PR analysis]
types:
- completed

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-windows
Expand All @@ -16,7 +19,7 @@ jobs:
runs-on: windows-latest
# disabled due to issues in #5230
if: 0
#if: github.event.pull_request.draft == false
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -67,7 +70,8 @@ jobs:
build_win_clang:
name: Clang C++17 w/ OMP w/o MPI
runs-on: windows-2019
if: github.event.pull_request.draft == false
if: 0
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down

0 comments on commit be7d829

Please sign in to comment.