From d5cae8a34c351ce5d42c7b0c8de99fcb5492fbed Mon Sep 17 00:00:00 2001 From: Sergei Iskakov Date: Wed, 21 May 2025 22:14:53 -0400 Subject: [PATCH] switchin to Github hosted runners --- .github/workflows/test.yaml | 65 +++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7926445..84ea5ce 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,41 +12,34 @@ 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; - 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; - - - name: Test - env: - OMP_NUM_THREADS: 1 - run: | - module load BuildEnv/gcc-12.2.0.lua; - cd build; - ctest -j1 --output-on-failure; - - - 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 '*_deps*' --output-file coverage.info - lcov --remove coverage.info '*libs*' --output-file coverage.info - lcov --list coverage.info - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - with: - flags: unittests - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - + - uses: actions/checkout@v4 + + - name: Build + 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 -j4; + + - name: Test + run: | + cd build; + ctest -j1; + - name: Run coverage + run: | + cd build; + lcov --ignore-errors source,source --capture --directory . --output-file coverage.info; + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}