From 2a1f2b94eeb741f434d8981a3d3ac1e3bce54312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sat, 18 Dec 2021 22:21:26 +0100 Subject: [PATCH] Run CI only when relevant directories are modified This avoids spawning dozens of jobs when modifying unrelated files (like README, documentation, etc...) --- .github/workflows/Documenter.yml | 6 ++++++ .github/workflows/ShellCheck.yml | 4 ++++ .github/workflows/UnitTests.yml | 16 +++++++++++----- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml index 9e0159173..dc0ff2b0c 100644 --- a/.github/workflows/Documenter.yml +++ b/.github/workflows/Documenter.yml @@ -5,7 +5,13 @@ on: branches: - master tags: '*' + paths: + - 'docs/**' + - 'src/**' pull_request: + paths: + - 'docs/**' + - 'src/**' jobs: docs-build: diff --git a/.github/workflows/ShellCheck.yml b/.github/workflows/ShellCheck.yml index 01ce545db..2bd465cdc 100644 --- a/.github/workflows/ShellCheck.yml +++ b/.github/workflows/ShellCheck.yml @@ -5,7 +5,11 @@ on: branches: - master tags: '*' + paths: + - 'bin/**' pull_request: + paths: + - 'bin/**' jobs: shellcheck: diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 3ac91439d..2578aff17 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -1,11 +1,20 @@ -name: Unit Tests +name: MPI.jl Unit Tests on: pull_request: - + paths: + - 'bin/**' + - 'deps/**' + - 'src/**' + - 'test/**' push: branches: - master + paths: + - 'bin/**' + - 'deps/**' + - 'src/**' + - 'test/**' jobs: test-jll: @@ -17,9 +26,6 @@ jobs: - ubuntu-latest - windows-latest julia_version: - # Unsupported - "1.3" - # Unsupported - "1.4" - # Unsupported - "1.5" - "1.6" - "1.7" - "nightly"