-
Notifications
You must be signed in to change notification settings - Fork 25
107 lines (94 loc) · 3.8 KB
/
reform_tests.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
102
103
104
105
106
107
name: Unit tests for updated formulation
on:
# Triggers the workflow on push or pull request events but only for the master branch.
# Remove push when finally merging.
push:
branches: [ updated-formulation ]
pull_request:
branches: [ updated-formulation ]
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
# This job is called test_docs.
unit_tests:
# Recommended if you intend to make multiple deployments in quick succession
concurrency: ci-${{ github.ref }}
# Run on Ubuntu
runs-on: ubuntu-latest
# Necessary to prevent mpi tests failing due to lack of slots
env:
OMPI_MCA_btl: self,tcp
OMPI_MCA_rmaps_base_oversubscribe: 1
# Ensures conda environment is initialized for all steps
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
include:
# real versions
- NAME: Real
OPTIONAL: 'default'
INTERFACE: 'interface'
# complex versions
#- NAME: Complex
# OPTIONAL: 'complex'
# INTERFACE: 'complex_interface'
# PUBLISH_DOCS: false
name: FUNtoFEM ${{ matrix.NAME }} Build/Test
steps:
- name: Display run details
run: |
echo "=============================================================";
echo "Run #${GITHUB_RUN_NUMBER}";
echo "Run ID: ${GITHUB_RUN_ID}";
echo "Testing: ${GITHUB_REPOSITORY}";
echo "Triggered by: ${GITHUB_EVENT_NAME}";
echo "Initiated by: ${GITHUB_ACTOR}";
echo "=============================================================";
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- uses: actions/checkout@v2
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
- name: Install TACS
run: |
git clone https://github.com/smdogroup/tacs.git /home/runner/work/tacs;
export TACS_DIR=/home/runner/work/tacs;
conda install -c conda-forge sysroot_linux-64=2.17 -q -y;
conda install -c conda-forge openmpi openmpi-mpicxx -q -y;
conda install -c anaconda openblas -q -y;
conda install -c conda-forge lapack -q -y;
conda install -c conda-forge metis=5.1.0 -q -y;
cd $TACS_DIR;
cp Makefile.in.info Makefile.in;
make ${{ matrix.OPTIONAL }} TACS_DIR=$TACS_DIR METIS_INCLUDE=-I${CONDA_PREFIX}/include/ METIS_LIB="-L${CONDA_PREFIX}/lib/ -lmetis";
cd $TACS_DIR;
make ${{ matrix.INTERFACE }};
- name: Install FUNtoFEM
run: |
echo "=============================================================";
echo "Install FUNtoFEM";
echo "=============================================================";
export F2F_DIR=${GITHUB_WORKSPACE};
echo "F2F_DIR=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
cd $F2F_DIR;
cp Makefile.in.info Makefile.in;
make ${{ matrix.OPTIONAL }} F2F_DIR=$F2F_DIR METIS_INCLUDE=-I${CONDA_PREFIX}/include/ METIS_LIB="-L${CONDA_PREFIX}/lib/ -lmetis";
cd $F2F_DIR;
make ${{ matrix.INTERFACE }};
- name: Run tests
run: |
echo "=============================================================";
echo "Running all tests";
echo "=============================================================";
cd ${GITHUB_WORKSPACE}
testflo ${GITHUB_WORKSPACE}/tests/;