Running test suite of pyLOM by @bef-18 #149
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 test-suite | |
run-name: Running test suite of pyLOM by @${{ github.actor }} | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
run-testsuite: | |
runs-on: ubuntu-22.04 | |
env: | |
CC: mpicc | |
CXX: mpc++ | |
FC: mpif90 | |
steps: | |
# Free up some disk space in the runner | |
- name: Maximize build space | |
uses: AdityaGarg8/[email protected] | |
with: | |
remove-android: 'true' | |
remove-dotnet: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
- uses: actions/checkout@v3 | |
# Setup MPI and Python for this job | |
- name: Setup MPI | |
uses: mpi4py/setup-mpi@v1 | |
with: | |
mpi: openmpi | |
- name: Set up Python 3.9.15 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9.15 | |
# Run pyLOM compilation and deployment | |
- name: Set up configuration | |
run: | | |
sed -i 's/USE_MKL = ON/USE_MKL = OFF/g' options.cfg | |
sed -i 's/FORCE_GCC = OFF/FORCE_GCC = ON/g' options.cfg | |
- name: Fix h5py | |
run: | | |
sudo apt install libhdf5-mpi-dev | |
CC=mpicc HDF5_MPI="ON" pip install --no-binary=h5py h5py | |
- name: Set up dependencies | |
run: make deps requirements_full | |
- name: Build compiled code | |
run: make python | |
- name: Install | |
run: make install | |
# Test suite | |
- name: Run test-suite | |
run: cd Testsuite && python run_testsuite.py -f testsuite.json |