-
Notifications
You must be signed in to change notification settings - Fork 138
68 lines (65 loc) · 1.87 KB
/
main.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
name: CI
on:
pull_request:
push:
branches:
- develop
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
build:
runs-on: ubuntu-20.04
strategy:
matrix:
w90-binary-parallel: [ 'false', 'true' ]
name: Build and test `parallel=${{ matrix.w90-binary-parallel }}`
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install \
gfortran \
libblas-dev \
liblapack-dev \
openmpi-bin \
libopenmpi-dev
pip install --upgrade pip
pip install \
numpy \
matplotlib \
- name: build
env:
W90BINARYPARALLEL: ${{ matrix.w90-binary-parallel }}
run: |
if [ "$W90BINARYPARALLEL" == "true" ] ; then
cp ./.github/workflows/config/make.inc.gfort+openmpi ./make.inc
else
cp ./.github/workflows/config/make.inc.gfort ./make.inc
fi
#make -j default w90chk2chk libs
make all
- name: run tests
env:
W90BINARYPARALLEL: ${{ matrix.w90-binary-parallel }}
run: |
./.github/workflows/run_tests.sh
- name: compute coverage
uses: codecov/codecov-action@v1
- name: archive test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-results_parallel=${{ matrix.w90-binary-parallel }}
path: |
test-suite/tests/test*/test.err*
test-suite/tests/test*/test.out*