thermodynamics, subgrid, forces: more variables in field_r precision #155
Workflow file for this run
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
name: Run tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
case: ["bomex", "benchmark/rico"] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Install build dependencies | |
run: | | |
sudo sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list" | |
sudo apt-get update | |
sudo apt-get install -y cmake libfftw3-dev libhypre-dev libnetcdf-dev libopenmpi-dev libnetcdff-dev | |
- name: Set up Build | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug ../ | |
- name: Build | |
run: | | |
cd build | |
make -j 2 | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
export DALES=/home/runner/work/dales/dales/build/bin/dales | |
pytest -rf --assert=plain --case=${{ matrix.case }} | |