-
Notifications
You must be signed in to change notification settings - Fork 8
71 lines (62 loc) · 1.66 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Apt dependencies
shell: bash
run: |
sudo apt -y update
sudo apt install -y libgcc-9-dev \
libstdc++-9-dev \
libembree-dev \
python3-dev \
libhdf5-dev \
libeigen3-dev \
cmake
- name: Python dependencies
shell: bash
run: |
pip3 install numpy \
cython==0.29.37 \
scipy \
matplotlib \
h5py \
pytest \
pytest-cov \
codecov
- name: Build MOAB
shell: bash
run: |
cd ~
git clone https://bitbucket.org/fathomteam/moab.git
cd moab
git checkout 5.5.1
mkdir build
cd build
cmake -DENABLE_HDF5=ON -DENABLE_BLASLAPACK=OFF -DENABLE_PYMOAB=ON -DCMAKE_INSTALL_PREFIX=$HOME/opt -DCMAKE_BUILD_TYPE=Release ..
make -j4
make install
cd pymoab
pip3 install .
- name: Install
shell: bash
run: |
pip install .
- name: Test
shell: bash
run: |
pytest -v .
- name: tmate debug
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3