Cleanup PR #4
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: Run C++ tests | |
on: | |
pull_request: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev libc++1 | |
- name: Setup Conda environment. | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: gpudrive | |
environment-file: environment.yml | |
- name: Install dependencies and build the project with Poetry | |
run: | | |
conda activate gpudrive | |
poetry install | |
- name: Run tests | |
run: | | |
cd build/ | |
ctest |