-
Notifications
You must be signed in to change notification settings - Fork 1
168 lines (164 loc) · 5.53 KB
/
examples.yml
File metadata and controls
168 lines (164 loc) · 5.53 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Simvue Examples
on:
push:
branches: ["main", "dev", "hotfix/update-ci"]
pull_request:
branches: [ "main", "dev", "hotfix/update-ci" ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
GeometryOptimisation:
runs-on: ubuntu-latest
if: false # deactivate for now
steps:
- uses: actions/checkout@v4
- name: Download BlueMira
uses: actions/checkout@v4
with:
repository: Fusion-Power-Plant-Framework/bluemira
ref: v1.10.0
path: blue_mira
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: bluemira
environment-file: blue_mira/conda/environment.yml
miniforge-version: "latest"
use-only-tar-bz2: false
miniforge-variant: Mambaforge
use-mamba: true
python-version: "3.11"
- name: Install bluemira
shell: bash -l {0}
run: pip install -e blue_mira
- name: Install Simvue
shell: bash -l {0}
run: pip install -e .
- name: Run Example
shell: bash -l {0}
run: python ./examples/GeometryOptimisation/bluemira_simvue_geometry_optimisation.py
Logging:
runs-on: ubuntu-latest
if: false # deactivate for now
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Simvue
run: python3 -m pip install .
- name: Run Example
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
python3 examples/Logging/logging-to-simvue.py --ci
Optuna:
runs-on: ubuntu-latest
if: false # deactivate for now
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Simvue
run: python3 -m pip install .
- name: Install Dependencies
run: |
python3 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python3 -m pip install -r examples/Optuna/PyTorch/requirements.txt
- name: Run Example
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
python3.11 ./examples/Optuna/PyTorch/simvue_optuna_pytorch.py --ci
PyTorch:
runs-on: ubuntu-latest
if: false # deactivate for now
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Simvue
run: python3 -m pip install .
- name: Install Dependencies
run: |
python3 -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python3 -m pip install -r examples/PyTorch/requirements.txt
- name: Run Example
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
python3.11 ./examples/PyTorch/main.py --ci
SU2:
runs-on: ubuntu-latest
if: false # deactivate for now
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Download SU2
run: |
wget https://github.com/su2code/SU2/releases/download/v8.0.1/SU2-v8.0.1-linux64.zip
unzip SU2-v8.0.1-linux64.zip
- name: Install dependencies
run: |
python -m pip install ukaea-multiparser
python -m pip install .
- name: Run Example
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
python examples/SU2/SU2.py bin --config tests/example_data/SU2_inv_ONERAM6.cfg --ci
TensorFlow:
if: false # deactivate for now
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Simvue
run: python3 -m pip install .
- name: Install Dependencies
run: python3 -m pip install -r examples/Tensorflow/requirements.txt
- name: Run Example
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
python3.11 ./examples/Tensorflow/dynamic_rnn.py --ci
GEANT4:
if: false # deactivate for now
runs-on: ubuntu-latest
container:
image: artemisbeta/geant4:11.2.1
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Simvue
run: python3 -m pip install .
- name: Install Dependencies
run: python3 -m pip install -r examples/Geant4/requirements.txt
- name: Build Example
run: |
cmake -DCMAKE_PREFIX_PATH=/usr/local/share/geant4/install/4.11.2/ -Bbuild examples/Geant4/FixedTarget/
cmake --build build
- name: Run Example
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
python examples/Geant4/geant4_simvue.py build/MaterialTesting --ci --events 10