-
Notifications
You must be signed in to change notification settings - Fork 6
101 lines (81 loc) · 2.25 KB
/
testing.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: build
on:
push:
pull_request:
jobs:
numerics:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2.2.0
with:
submodules: 'true'
- name: Set up compilers and libraries
run: |
sudo apt-get update
sudo apt-get -qq install gfortran
sudo apt-get install libopenmpi-dev
sudo apt-get install openmpi-bin
sudo apt-get install imagemagick
pip install scipy
pip install numpy
pip install pandas
pip install xarray
pip install toolz
pip install dask
pip install future
pip install sphinx
pip install sphinx_rtd_theme
pip install recommonmark
pip install matplotlib
pip install pytest-cov
pip install codecov
cd lib/hypre/src
./configure
make install
cd ../../..
- name: install
run: pip install -e .
- name: Run Hypre tests
run: pytest --cov=aronnax -k 'Hypre and not 2X_2Y'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
gcov: true
- name: Run non-Hypre tests
run: pytest --cov=aronnax -k 'not Hypre and not 2X_2Y'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
gcov: true
doc_html:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2.2.0
- name: Set up Python
uses: actions/setup-python@v2
- name: install dependencies
run: |
./.github/workflows/install_doc_dependencies.sh
pip install -e .
- name: build docs
run: |
cd docs
sphinx-build -b html -d _build_doctrees . _build/html
doc_latex:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2.2.0
- name: Set up Python
uses: actions/setup-python@v2
- name: install dependencies
run: ./.github/workflows/install_doc_dependencies.sh
- name: build docs
run: |
cd docs
make clean latexpdf LATEXOPTS="-interaction=nonstopmode -halt-on-error"