-
Notifications
You must be signed in to change notification settings - Fork 10
185 lines (157 loc) · 6.99 KB
/
old_stella_releases.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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Run these tests automatically on Github on every push and pull request.
# Use the macOS operating system, which has 4 cores.
name: Check old stella releases
on: [push]
# We always run in a bash shell
defaults:
run:
shell: bash
# First build stella, and then perform python tests
jobs:
#-----------------------------------------------------------------------
# Python tests
#-----------------------------------------------------------------------
# Perform python tests one by one
stella-v0.5:
runs-on: ubuntu-22.04
env:
OMPI_MCA_rmaps_base_oversubscribe: yes
MPIRUN: mpiexec -np
STELLA_SYSTEM: gnu_ubuntu
# Run the same set-up multiple times
strategy:
fail-fast: false
matrix:
config:
- name: "1 - Does stella run "
#- name: "2 - Geometry"
#- name: "3 - Gyrokinetic equation"
#- name: "4 - Flux tube"
#- name: "5 - Diagnostics"
#- name: "6 - Full Flux Surface"
#- name: "7 - Electromagnetic effects"
steps:
# Check-out repository under $GITHUB_WORKSPACE
- name: Check out repository
uses: actions/checkout@v4
# Install dependencies
- name: Install dependencies and python virtual environment
run: |
sudo apt update
sudo apt install -y gfortran make libfftw3-dev libnetcdf-dev libnetcdff-dev
sudo apt install -y netcdf-bin python3 python3-pip openmpi-bin libopenmpi-dev
pip3 install --user -r AUTOMATIC_TESTS/requirements.txt
sed -i 's/nproc = 16/nproc = 4/g' AUTOMATIC_TESTS/config.ini
# Coppy stella executable from AUTOMATIC_TESTS/numerical_tests/stella_releases
- name: Download stella
run: |
cp AUTOMATIC_TESTS/numerical_tests/stella_releases/stella_v0.7 stella
# Perform python tests
- name: Numerical python tests
run: |
# Make stella executable
chmod +x stella
# Run one of the python tests
if ${{ contains(matrix.config.name, '1 -') }}; then make numerical-tests-1; fi
if ${{ contains(matrix.config.name, '2 -') }}; then make numerical-tests-2; fi
if ${{ contains(matrix.config.name, '3 -') }}; then make numerical-tests-3; fi
if ${{ contains(matrix.config.name, '4 -') }}; then make numerical-tests-4; fi
if ${{ contains(matrix.config.name, '5 -') }}; then make numerical-tests-5; fi
if ${{ contains(matrix.config.name, '6 -') }}; then make numerical-tests-6; fi
if ${{ contains(matrix.config.name, '7 -') }}; then make numerical-tests-7; fi
# Perform python tests one by one
stella-v0.6:
runs-on: ubuntu-22.04
env:
OMPI_MCA_rmaps_base_oversubscribe: yes
MPIRUN: mpiexec -np
STELLA_SYSTEM: gnu_ubuntu
# Run the same set-up multiple times
strategy:
fail-fast: false
matrix:
config:
- name: "1 - Does stella run "
#- name: "2 - Geometry"
#- name: "3 - Gyrokinetic equation"
#- name: "4 - Flux tube"
#- name: "5 - Diagnostics"
#- name: "6 - Full Flux Surface"
#- name: "7 - Electromagnetic effects"
steps:
# Check-out repository under $GITHUB_WORKSPACE
- name: Check out repository
uses: actions/checkout@v4
# Install dependencies
- name: Install dependencies and python virtual environment
run: |
sudo apt update
sudo apt install -y gfortran make libfftw3-dev libnetcdf-dev libnetcdff-dev
sudo apt install -y netcdf-bin python3 python3-pip openmpi-bin libopenmpi-dev
pip3 install --user -r AUTOMATIC_TESTS/requirements.txt
sed -i 's/nproc = 16/nproc = 4/g' AUTOMATIC_TESTS/config.ini
# Coppy stella executable from AUTOMATIC_TESTS/numerical_tests/stella_releases
- name: Download stella
run: |
cp AUTOMATIC_TESTS/numerical_tests/stella_releases/stella_v0.6 stella
# Perform python tests
- name: Numerical python tests
run: |
# Make stella executable
chmod +x stella
# Run one of the python tests
if ${{ contains(matrix.config.name, '1 -') }}; then make numerical-tests-1; fi
if ${{ contains(matrix.config.name, '2 -') }}; then make numerical-tests-2; fi
if ${{ contains(matrix.config.name, '3 -') }}; then make numerical-tests-3; fi
if ${{ contains(matrix.config.name, '4 -') }}; then make numerical-tests-4; fi
if ${{ contains(matrix.config.name, '5 -') }}; then make numerical-tests-5; fi
if ${{ contains(matrix.config.name, '6 -') }}; then make numerical-tests-6; fi
if ${{ contains(matrix.config.name, '7 -') }}; then make numerical-tests-7; fi
# Perform python tests one by one
stella-v0.7:
runs-on: ubuntu-22.04
env:
OMPI_MCA_rmaps_base_oversubscribe: yes
MPIRUN: mpiexec -np
STELLA_SYSTEM: gnu_ubuntu
# Run the same set-up multiple times
strategy:
fail-fast: false
matrix:
config:
- name: "1 - Does stella run "
#- name: "2 - Geometry"
#- name: "3 - Gyrokinetic equation"
#- name: "4 - Flux tube"
#- name: "5 - Diagnostics"
#- name: "6 - Full Flux Surface"
#- name: "7 - Electromagnetic effects"
steps:
# Check-out repository under $GITHUB_WORKSPACE
- name: Check out repository
uses: actions/checkout@v4
# Install dependencies
- name: Install dependencies and python virtual environment
run: |
sudo apt update
sudo apt install -y gfortran make libfftw3-dev libnetcdf-dev libnetcdff-dev
sudo apt install -y netcdf-bin python3 python3-pip openmpi-bin libopenmpi-dev
pip3 install --user -r AUTOMATIC_TESTS/requirements.txt
sed -i 's/nproc = 16/nproc = 4/g' AUTOMATIC_TESTS/config.ini
# Coppy stella executable from AUTOMATIC_TESTS/numerical_tests/stella_releases
- name: Download stella
run: |
cp AUTOMATIC_TESTS/numerical_tests/stella_releases/stella_v0.7 stella
# Perform python tests
- name: Numerical python tests
run: |
# Make stella executable
chmod +x stella
# Run one of the python tests
if ${{ contains(matrix.config.name, '1 -') }}; then make numerical-tests-1; fi
if ${{ contains(matrix.config.name, '2 -') }}; then make numerical-tests-2; fi
if ${{ contains(matrix.config.name, '3 -') }}; then make numerical-tests-3; fi
if ${{ contains(matrix.config.name, '4 -') }}; then make numerical-tests-4; fi
if ${{ contains(matrix.config.name, '5 -') }}; then make numerical-tests-5; fi
if ${{ contains(matrix.config.name, '6 -') }}; then make numerical-tests-6; fi
if ${{ contains(matrix.config.name, '7 -') }}; then make numerical-tests-7; fi