Skip to content

Commit

Permalink
Merge pull request #243 from mfem/add-skip-label-to-ci
Browse files Browse the repository at this point in the history
add condition to skip if label='skip-ci'
  • Loading branch information
sshiraiwa authored Aug 6, 2024
2 parents 3fc2bc1 + e3708ce commit c135a63
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 49 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-test-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Build and test whole matrix of options on linux
# -------------------------------------------------------------------------------------------------
test-linux-serial:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' }}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') || inputs.test_options == 'all' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -40,9 +40,9 @@ jobs:
mfem-branch: ${{ matrix.mfem-branch }}
python-version: ${{ matrix.python-version }}
parallel: ${{ matrix.parallel }}

test-linux-parallel:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' }}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') || inputs.test_options == 'all' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -56,7 +56,7 @@ jobs:
mfem-branch: ${{ matrix.mfem-branch }}
python-version: ${{ matrix.python-version }}
parallel: ${{ matrix.parallel }}

# -------------------------------------------------------------------------------------------------
# Fast test
# -------------------------------------------------------------------------------------------------
Expand All @@ -79,7 +79,7 @@ jobs:
# Specific cases (we want these to use defaults, and not expand the dimensions of the matrix)
# -------------------------------------------------------------------------------------------------
test-macos:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' }}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') || inputs.test_options == 'all' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -91,21 +91,21 @@ jobs:
mfem-branch: ${{ matrix.mfem-branch }}

test-cuda:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' || inputs.test_options == 'cuda'}}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') || inputs.test_options == 'all' || inputs.test_options == 'cuda'}}
uses: ./.github/workflows/build-and-test-callable.yml
with:
cuda: true
name: test-cuda

test-libceed:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' || inputs.test_options == 'libceed'}}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') || inputs.test_options == 'all' || inputs.test_options == 'libceed'}}
uses: ./.github/workflows/build-and-test-callable.yml
with:
libceed: true
name: test-libceed

test-gslib:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' || inputs.test_options == 'gslib'}}
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') || inputs.test_options == 'all' || inputs.test_options == 'gslib'}}
uses: ./.github/workflows/build-and-test-callable.yml
with:
gslib: true
Expand Down
2 changes: 0 additions & 2 deletions .vscode/settings.json

This file was deleted.

19 changes: 0 additions & 19 deletions ci_scripts/add_cuda_10_1.sh

This file was deleted.

11 changes: 0 additions & 11 deletions ci_scripts/add_cuda_11_1.sh

This file was deleted.

9 changes: 0 additions & 9 deletions ci_scripts/add_cuda_11_5.sh

This file was deleted.

0 comments on commit c135a63

Please sign in to comment.