-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified MPI Scheduler Test with recommended changes
- Loading branch information
1 parent
4c1e364
commit cf1cd5d
Showing
2 changed files
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{inputs.python-version}} | ||
- name: Setup pip | ||
shell: sh | ||
run: | | ||
python3 -m ensurepip | ||
pip3 install --upgrade pip | ||
- name: Setup MPI | ||
if: ${{ inputs.mpi == 'true' }} | ||
uses: mpi4py/setup-mpi@v1 | ||
- name: Install project no MPI | ||
if: ${{ inputs.mpi == 'false' }} | ||
shell: sh | ||
run: pip install ".[dev,aws]" | ||
- name: Install project MPI | ||
if: ${{ inputs.mpi == 'true' }} | ||
shell: sh | ||
run: pip install ".[dev,mpi,aws]" | ||
- name: Install Dependencies | ||
run: pip install ".[dev,aws]" | ||
if [[ ${{ inputs.mpi }} == 'true' ]]; then | ||
pip install ".[mpi]" | ||
fi | ||
name: Setup | ||
description: Setup NoisePy for testing | ||
inputs: | ||
python-version: | ||
required: true | ||
description: Python version to install | ||
mpi: | ||
required: false | ||
description: Whether to install with MPI or not | ||
default: 'false' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{inputs.python-version}} | ||
- name: Setup pip | ||
shell: sh | ||
run: | | ||
python3 -m ensurepip | ||
python3 -m pip install --upgrade pip | ||
- name: Setup MPI | ||
if: ${{ inputs.mpi == 'true' }} | ||
uses: mpi4py/setup-mpi@v1 | ||
- name: Install project no MPI | ||
if: ${{ inputs.mpi == 'false' }} | ||
shell: sh | ||
run: pip install ".[dev,aws]" | ||
- name: Install project MPI | ||
if: ${{ inputs.mpi == 'true' }} | ||
shell: sh | ||
run: pip install ".[dev,mpi,aws]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters