Add test #88
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: Build and test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install requirements | |
run: sudo apt install ninja-build g++-aarch64-linux-gnu qemu qemu-system-aarch64 qemu-user | |
- name: Install Python packages | |
run: pip install pytest numpy cmake-format | |
- name: format | |
run: ./run-format.sh | |
- name: CMake | |
run: mkdir build && cd build && cmake -GNinja -DSOLD_PYBIND_TEST=ON .. | |
- name: Build | |
run: cmake --build build | |
- name: Test | |
run: cd build && ctest --output-on-failure |