add runtime context #107
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: C++ CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Set up CMake | |
run: | | |
sudo apt-get install -y cmake | |
pip install pytest | |
- name: Build project | |
run: | | |
git submodule update --init --recursive | |
mkdir build | |
cd build | |
cmake .. | |
make | |
cd .. | |
pip wheel . | |
pip install --force-reinstall *.whl | |
- name: Run tests | |
run: | | |
cd build | |
ctest -R | |
cd ../ | |
pytest test | |
- name: Upload test results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-results | |
path: build/Testing/Temporary |