Skip to content

Commit

Permalink
workflows: Update CI-mpi to use self-hosted runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodrin committed Apr 15, 2020
1 parent decce70 commit c7019c7
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/pytest-core-mpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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]
Expand Down

0 comments on commit c7019c7

Please sign in to comment.