Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Jan 29, 2025
1 parent 563a66d commit 32ad21d
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: 'true'

- name: Setup Fortran
uses: awvwgk/setup-fortran@main
Expand All @@ -21,23 +19,38 @@ jobs:
compiler: gcc
version: 11

- name: Setup Python
uses: actions/setup-python@v3
- uses: mamba-org/setup-micromamba@v2
with:
python-version: 3.9
environment-name: test-env
create-args: >-
python
numpy
scipy
numba
h5py
cmake
fypp
clang
gfortran
valgrind
- name: install dependencies
- name: Install Valgrind
run: |
python -m pip install --upgrade pip
python -m pip install h5py fypp
sudo apt update
sudo apt install valgrind
sudo apt install libhdf5-dev
- name: configure cmake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
shell: bash -el {0}
run: |
export CC="$(which clang)"
export CXX="$(which clang)"
export FC="$(which gfortran)"
export CONDA_PREFIX_SAVE=$CONDA_PREFIX
unset CONDA_PREFIX
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH=$CONDA_PREFIX_SAVE
export CONDA_PREFIX=$CONDA_PREFIX_SAVE
- name: build fortran
shell: bash -el {0}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: test fortran
Expand All @@ -47,4 +60,5 @@ jobs:
valgrind --error-exitcode=1 --leak-check=full ./tests/memtest_evo
- name: build python
run: python -m pip install . -v
shell: bash -el {0}
run: python -m pip install --no-deps --no-build-isolation . -v

0 comments on commit 32ad21d

Please sign in to comment.