change precision factor to 1e-8 based off 2d_c5g7 tests #127
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: test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up python 3.11 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: debug | |
run: | | |
pwd | |
ls | |
- uses: mpi4py/setup-mpi@v1 | |
- name: Install dependencies | |
run: | | |
#sudo apt-get install libopenmpi-dev | |
pip install numpy numba h5py matplotlib scipy pytest colorama mpi4py | |
pip list | |
pip install -e . | |
- name: Patch Numba | |
run : | | |
bash .github/workflows/patch.sh | |
- name: Unit Test | |
run: | | |
pytest | |
- name: Regression Test - Python | |
run: | | |
cd test/regression | |
python run.py | |
- name: Regression Test - MPI | |
run: | | |
cd test/regression | |
python run.py --mpiexec=4 | |
python run.py --mpiexec=2 | |
- name: Regression Test - Numba | |
run: | | |
cd test/regression | |
python run.py --mode=numba | |
- name: Regression Test - Numba and MPI | |
run: | | |
cd test/regression | |
python run.py --mode=numba --mpiexec=4 | |
python run.py --mode=numba --mpiexec=2 | |
# TODO: Performance test | |
# TODO: GPU test |