Skip to content

Commit

Permalink
Merge branch 'mfem_47_dev' into fix-libceed-remove-python37
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiraiwa authored Aug 6, 2024
2 parents bae0279 + 2c621d6 commit d7f6dcd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
sudo apt-get install mpich libmpich-dev
pip install mpi4py
- name: Purge PIP chach
run: pip cache purge

Expand Down
31 changes: 24 additions & 7 deletions .github/workflows/build-and-test-dispatch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# build-and-test-dispatch.yml
#
# Dispatch workflow for build-and-test-callable.yml

name: Build and Test (dispatch)

on:
Expand All @@ -15,21 +14,24 @@ on:
options:
- 'defaults'
- 'fast'
- 'cuda'
- 'libceed'
- 'gslib'
- 'all'
pull_request:

jobs:
# -------------------------------------------------------------------------------------------------
# Build and test whole matrix of options on linux
# -------------------------------------------------------------------------------------------------
test-linux:
test-linux-serial:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' }}
strategy:
fail-fast: false
matrix:
mfem-branch: [master, default] # 'default' uses a specific commit hash defined in setup.py:repos_sha
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] # 3.12 is not supported by scipy
parallel: [false, true]
parallel: [false]
name: test-linux | ${{ matrix.mfem-branch }} | ${{ matrix.python-version }} | ${{ matrix.parallel && 'parallel' || 'serial' }}
uses: ./.github/workflows/build-and-test-callable.yml
with:
Expand All @@ -38,6 +40,21 @@ jobs:
python-version: ${{ matrix.python-version }}
parallel: ${{ matrix.parallel }}

test-linux-parallel:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' }}
strategy:
fail-fast: false
matrix:
mfem-branch: [master, default] # 'default' uses a specific commit hash defined in setup.py:repos_sha
python-version: ['3.9', '3.10', '3.11'] # 3.12 is not supported by scipy
parallel: [true]
name: test-linux | ${{ matrix.mfem-branch }} | ${{ matrix.python-version }} | ${{ matrix.parallel && 'parallel' || 'serial' }}
uses: ./.github/workflows/build-and-test-callable.yml
with:
os: ubuntu-latest
mfem-branch: ${{ matrix.mfem-branch }}
python-version: ${{ matrix.python-version }}
parallel: ${{ matrix.parallel }}

# -------------------------------------------------------------------------------------------------
# Fast test
Expand Down Expand Up @@ -73,21 +90,21 @@ jobs:
mfem-branch: ${{ matrix.mfem-branch }}

test-cuda:
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' }}
if: ${{ github.event_name == 'pull_request' || 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' }}
if: ${{ github.event_name == 'pull_request' || 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' }}
if: ${{ github.event_name == 'pull_request' || inputs.test_options == 'all' || inputs.test_options == 'gslib'}}
uses: ./.github/workflows/build-and-test-callable.yml
with:
gslib: true
Expand All @@ -99,4 +116,4 @@ jobs:
test-defaults:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.test_options == 'defaults' }}
uses: ./.github/workflows/build-and-test-callable.yml
name: test-defaults
name: test-defaults

0 comments on commit d7f6dcd

Please sign in to comment.