Give me some info if the tests are failing, please #3
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: Python wrapper testing | |
on: | |
push: | |
branches: [ $default-branch, master, wrappers_test ] | |
pull_request: | |
branches: | |
- "**" | |
permissions: write-all | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
VTK_VERSION_MAJOR: 9 | |
VTK_VERSION_MINOR: 2 | |
VTK_VERSION_PATCH: 6 | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
id: setup-python | |
- name: Install Python dependencies | |
run: pip install --upgrade build | |
- name: Install VTK | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get -qq -y install libvtk9-dev | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DEXTERNAL_EIGEN:BOOL=OFF -DPYTHON_WRAPPER:BOOL=ON -DFORTRAN_WRAPPER:BOOL=OFF -DRUST_WRAPPER:BOOL=OFF -DUSE_VTK=ON -DBUILD_TESTING=ON | |
- name: Build | |
id: build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
# We are just testing in Linux | |
run: ctest -C ${{env.BUILD_TYPE}} -R python-tests --output-on-failure |