-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run github tests on old stella releases
- Loading branch information
1 parent
3289d75
commit 57844be
Showing
6 changed files
with
218 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
The stella releases are found at: | ||
https://github.com/stellaGK/stella/releases | ||
|
||
Note that for stella_v0.7 we commented line 224 in run_parameters.f90 (error = .true.), in order to allow stella to run when the variables `fapar` and `fbpar` are set in the input file. Since these variables are needed for stella_v0.6. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/cookie/Documents/GitHub/stella-v0.5/stella |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/cookie/Documents/GitHub/stella-v0.6/stella |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/cookie/Documents/GitHub/stella-v0.7/stella |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters