-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: Update CI-mpi to use self-hosted runners.
- Loading branch information
Showing
1 changed file
with
5 additions
and
15 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 |
---|---|---|
|
@@ -13,34 +13,23 @@ on: | |
jobs: | ||
build: | ||
name: pytest-mpi | ||
runs-on: ubuntu-16.04 | ||
runs-on: self-hosted | ||
|
||
env: | ||
DEVITO_ARCH: "gcc-7" | ||
DEVITO_LANGUAGE: "openmp" | ||
DEVITO_BACKEND: "core" | ||
CC: "gcc-7" | ||
CXX: "g++-7" | ||
PYTHON_VERSION: "3.7" | ||
|
||
steps: | ||
- name: Checkout devito | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install MPI | ||
run : | | ||
sudo apt-get install -y mpich libmpich-dev | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -e .[extras] | ||
ipcluster start --profile=mpi -n 4 --daemon | ||
pip3 install --upgrade pip | ||
pip3 install -e .[extras] | ||
- name: Test with pytest | ||
run: | | ||
|
@@ -49,8 +38,9 @@ jobs: | |
- name: Test mpi notebook | ||
run : | | ||
# Currently not tested due to issue #859 | ||
# ipcluster start --profile=mpi -n 4 --daemon | ||
# py.test --nbval examples/mpi | ||
ipcluster stop --profile=mpi | ||
# ipcluster stop --profile=mpi | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|