run ctest correctly in ci #11
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: ctest | |
on: [push, pull_request] | |
env: | |
PYTHONUNBUFFERED: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install python3 | |
run: | | |
sudo apt update | |
sudo apt install python3 | |
- name: Create build directory | |
run: | | |
mkdir build | |
- name: Run CMake configure (default) | |
run: | | |
cd build | |
cmake .. | |
- name: Build | |
run: | | |
cd build | |
make -j4 | |
- name: Ctest | |
run: | | |
cd build | |
ctest |