forked from devitocodes/devito
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 950 Bytes
/
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
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-20.04
env:
DEVITO_LANGUAGE: "openmp"
DEVITO_ARCH: "gcc-9"
DEVITO_BACKEND: "core"
CC: "gcc-9"
CXX: "g++-9"
steps:
- name: Checkout devito
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt install mpich -y
pip3 install --upgrade pip
pip3 install -r requirements-mpi.txt
pip3 install -e .[extras]
- name: Test with pytest
run: |
python3 -m 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