Skip to content

Commit

Permalink
Modify build tests, remove other tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Nov 21, 2023
1 parent 97f2332 commit bd5f293
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 86 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/build.yml → .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
matrix:
mpi: ['mpich', 'openmpi']
os: ['ubuntu-latest', 'macos-latest']
precision: [128, 256, 4096, 16384]

name: ${{ matrix.os }} ${{ matrix.mpi }}
runs-on: ${{ matrix.os }}
Expand All @@ -30,19 +31,9 @@ jobs:
with:
mpi: ${{ matrix.mpi }}

- name: set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: install python dependencies
run: |
pip install numpy
pip install scipy
- name: build
run: |
cmake -S . -B build -DPRECISON=256 -DBUILD_TESTS=ON -DSMOKE=OFF
cmake -S . -B build -DPRECISON=${{ matrix.precision }} -DBUILD_TESTS=ON -DSMOKE=OFF
cd build
make
cd ..
Expand All @@ -53,11 +44,17 @@ jobs:
- name: test executables
run: |
mpiexec -n 2 ./build/hdspin -t 6 -N 128 -l EREM -b 2.4 -d gillespie --seed=123
rm -r data grids
mpiexec -n 2 ./build/hdspin -t 6 -N 128 -l EREM -b 2.2 -d standard --seed=123
rm -r data grids
mpiexec -n 2 ./build/hdspin -t 6 -N 128 -l EREM -b 2.3 --seed=123
mpiexec -n 5 ./build/hdspin -t 6 -N ${{ matrix.precision }} -l EREM -b 2.4 --seed=123
- name: set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: install python dependencies
run: |
pip install numpy
pip install scipy
- name: run postprocess
run: |
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# hdspin

[![image](https://github.com/matthewcarbone/hdspin/actions/workflows/build.yml/badge.svg)](https://github.com/matthewcarbone/hdspin/actions/workflows/build.yml)
[![image](https://github.com/matthewcarbone/hdspin/actions/workflows/tests.yml/badge.svg)](https://github.com/matthewcarbone/hdspin/actions/workflows/tests.yml)
<!-- [![image](https://github.com/matthewcarbone/hdspin/actions/workflows/tests.yml/badge.svg)](https://github.com/matthewcarbone/hdspin/actions/workflows/tests.yml) -->

**Sandbox for the Exponential and Gaussian Random Energy Models**

Expand Down

0 comments on commit bd5f293

Please # to comment.