-
Notifications
You must be signed in to change notification settings - Fork 230
52 lines (43 loc) · 1.05 KB
/
pytest-core-mpi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI-mpi
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: pytest-mpi
runs-on: ubuntu-16.04
env:
DEVITO_ARCH: "gcc-7"
DEVITO_OPENMP: 1
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]
- name: Test with pytest
run: |
pytest --cov --cov-config=.coveragerc --cov-report=xml -m parallel tests/
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: pytest-mpi