Skip to content

fixed memory test

fixed memory test #339

Workflow file for this run

name: test
on: push
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: test-env
create-args: >-
photochem_clima_data
python
numpy
scipy
pyyaml
numba
astropy
h5py
threadpoolctl
scikit-build
cmake=3
ninja
cython
fypp
pip
c-compiler
cxx-compiler
fortran-compiler
valgrind
- name: Install glibc debug symbols for valgrind
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libc6-dbg
- name: configure cmake
shell: bash -el {0}
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
- name: build fortran
shell: bash -el {0}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: test fortran
shell: bash -el {0}
working-directory: ${{github.workspace}}/build
run: |
valgrind --error-exitcode=1 --leak-check=full ./tests/memtest_evo
- name: build python
shell: bash -el {0}
run: |
export CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX"
python -m pip install --no-deps --no-build-isolation . -v