diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f0d43a2..84ea5ce 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,36 +12,33 @@ jobs: strategy: fail-fast: false - runs-on: self-hosted + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Build - run: | - module load BuildEnv/gcc-12.2.0.lua; + run: | + sudo apt-get update + sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev + sudo apt-get install libhdf5-serial-dev + sudo apt-get install libeigen3-dev + sudo apt-get install libopenblas-dev + sudo apt-get install lcov + mkdir build; cd build; cmake -DCMAKE_CXX_FLAGS=" --coverage -fno-inline -fno-inline-small-functions -fno-default-inline -fprofile-arcs -ftest-coverage " .. ; - make -j 4; + make -j4; - name: Test run: | - module load BuildEnv/gcc-12.2.0.lua; cd build; ctest -j1; - mpirun -np 4 test/mpi_utils_test; - - name: Run coverage run: | - module load BuildEnv/gcc-12.2.0.lua; cd build; - lcov --capture --directory . --output-file coverage.info; - lcov --remove coverage.info '/usr/*' --output-file coverage.info - lcov --remove coverage.info '/opt/ohpc/pub/compiler/*' --output-file coverage.info - lcov --remove coverage.info '*catch*' --output-file coverage.info - lcov --list coverage.info - + lcov --ignore-errors source,source --capture --directory . --output-file coverage.info; - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: