forked from sirocco-rt/sirocco
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (70 loc) · 1.93 KB
/
build.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
name: C/C++ CI
on:
push:
branches:
- "dev"
- "main"
pull_request:
branches:
- "dev"
- "main"
env:
PYTHON: ${{ github.workspace }}
jobs:
greeting_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Print out environment variables"
run: |
echo "WORKSPACE IS $GITHUB_WORKSPACE $PYTHON"
$PYTHON/bin/Setup_Py_Dir
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure
run: ./configure
- name: make gh_workflow_install
run: make gh_workflow_install
run:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x' # Version range
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
cd $PYTHON/examples/gh-workflow/
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: compile helper programs and setup
run: |
cd $PYTHON/source/
make clean
make CC=gcc INDENT=no all
make clean
cd $PYTHON/examples/gh-workflow/
$PYTHON/bin/Setup_Py_Dir
- name: balmer test
run: |
cd $PYTHON/examples/gh-workflow/
$PYTHON/bin/py -f -v 1 balmer_test
python $PYTHON/py_progs/balmer_decrement.py balmer_test
- name: read in parameter files
run: |
cd $PYTHON/examples/gh-workflow/
$PYTHON/bin/Setup_Py_Dir
$PYTHON/bin/py -i cv_macro_benchmark
$PYTHON/bin/py -i cv_standard
$PYTHON/bin/py -i fiducial_agn
$PYTHON/bin/py -i 1d_sn
$PYTHON/bin/py -i -d sv_detailedmode
$PYTHON/bin/py -i agn_ss_2010_modela
$PYTHON/bin/py -i XRB_standard.pf
$PYTHON/bin/py -i ngc5548
$PYTHON/bin/py -i lamp_post
$PYTHON/bin/py -i cv_standard_import