-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (49 loc) · 1.93 KB
/
check_pyrokinetics.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
# Run these tests automatically on Github on every push and pull request.
name: Check Pyrokinetics
on: [push, pull_request]
# We always run in a bash shell
defaults:
run:
shell: bash
# First build stella, and then perform pyrokinetics tests
jobs:
#-----------------------------------------------------------------------
# Quick build
#-----------------------------------------------------------------------
# Build stella to perform pyrokinetics tests
pyrokinetics-tests:
name: Check Pyrokinetics
runs-on: ubuntu-22.04
env:
OMPI_MCA_rmaps_base_oversubscribe: yes
MPIRUN: mpiexec -np
STELLA_SYSTEM: gnu_ubuntu
steps:
# Check-out repository under $GITHUB_WORKSPACE
- name: Check out repository
uses: actions/checkout@v4
# Install dependencies
- name: Install dependencies
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
# Build stella executable
- name: Build stella
run: |
git submodule update --init --recursive
make -j 12
chmod +x stella
# 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 --upgrade pip
pip3 install --user -r AUTOMATIC_TESTS/requirements.txt
pip3 install --user -r EXTERNALS/pyrokinetics/.
sed -i 's/nproc = 16/nproc = 1/g' AUTOMATIC_TESTS/config.ini
# Perform pyrokinetics tests
- name: Pyrokinetics tests
run: make pyrokinetics-tests