-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (86 loc) · 2.46 KB
/
build_test.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
name: Standard Build and Test
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
paths-ignore:
- '.github/workflows/docker_publish.yml'
- '.github/workflows/changelog_test.yml'
- 'docker/**'
- 'CHANGELOG.rst'
push:
branches:
- develop
paths-ignore:
- '.github/workflows/docker_publish.yml'
- '.github/workflows/changelog_test.yml'
- 'docker/**'
- 'CHANGELOG.rst'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
BuildTest:
runs-on: ubuntu-latest
strategy:
matrix:
pymoab : [
_pymoab,
]
dagmc : [
'',
_dagmc
]
openmc : [
'',
]
hdf5 : [
'',
]
include:
- openmc: ''
hdf5: _hdf5-1_12_0
dagmc: _dagmc
pymoab: _pymoab
- openmc: _openmc
hdf5: ''
dagmc: _dagmc
pymoab: _pymoab
- openmc: ''
hdf5: ''
dagmc: ''
pymoab: ''
fail-fast: false
container:
image: ghcr.io/pyne/ubuntu_18.04_py3${{ matrix.hdf5 }}${{ matrix.dagmc }}${{ matrix.pymoab }}${{ matrix.openmc }}_pyne-deps:stable
steps:
- name: setup
shell: bash -l {0}
run: |
export ADD_FLAG=" "
if [[ "${{ matrix.pymoab }}" == "_pymoab" || "${{ matrix.dagmc }}" == "_dagmc" ]]; then
export ADD_FLAG="${ADD_FLAG} --moab /root/opt/moab"
fi
if [[ "${{ matrix.dagmc }}" == "_dagmc" ]]; then
export ADD_FLAG="${ADD_FLAG} --dagmc /root/opt/dagmc"
fi
if [[ "${{ matrix.hdf5 }}" == "_hdf5-1_12_0" ]]; then
export ADD_FLAG="${ADD_FLAG} --hdf5 /root/opt/hdf5/hdf5-1_12_0"
fi
export ADD_FLAG="${ADD_FLAG} "
echo "ADD_FLAG=${ADD_FLAG}" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v2
- name: Building PyNE
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE
python setup.py install --user --clean ${{ env.ADD_FLAG}}
export PATH="$PATH:/github/home/.local/bin"
export PYTHONPATH="$PYTHONPATH:/github/home/.local/lib/python3.6/site-packages/"
cd ../
nuc_data_make
- name: Testing PyNE
shell: bash -l {0}
run: |
cd $GITHUB_WORKSPACE/tests
./travis-run-tests.sh python3