improved getRandomUnitary in testing #279
Workflow file for this run
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: macOS unit | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
build-and-test: | |
name: Unit tests on macOS Catalina | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
float-precision: [2] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: make build directory | |
run: mkdir build_dir | |
- name: cmake configure | |
run: cmake .. -DTESTING:BOOL=ON -DPRECISION:STRING=${{matrix.float-precision}} | |
working-directory: build_dir | |
- name: cmake build | |
run: cmake --build . --parallel 2 --target tests | |
working-directory: build_dir | |
- name: cmake test | |
run: ctest -j2 --output-on-failure | |
working-directory: build_dir |