Cast int or float in numeric default args #24
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: test-cells-ubuntu | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
test-cells-ubuntu: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-22.04", "ubuntu-24.04"] | |
concurrency: | |
group: test-cells-ubuntu-${{ github.ref }}-${{ matrix.os }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -el {0} # -l needed to activate pipx | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
for vtk_ver in $(seq 7 9); do | |
available=1 | |
dpkg -s "libvtk${vtk_ver}-dev" || available=0 | |
if [ "${available}" -eq 1 ]; then | |
break | |
fi | |
done | |
echo "VTK version: ${vtk_ver}" | |
sudo apt-get install \ | |
castxml \ | |
clang \ | |
cmake \ | |
git \ | |
libboost-all-dev \ | |
libpetsc-real-dev \ | |
libvtk${vtk_ver}-dev \ | |
mpi-default-bin \ | |
mpi-default-dev \ | |
pipx \ | |
python3-mpi4py \ | |
python3-petsc4py-real \ | |
python3-pip \ | |
python3-vtk${vtk_ver} | |
pipx ensurepath | |
# Check installed package versions | |
dpkg-query -W \ | |
castxml \ | |
clang \ | |
cmake \ | |
git \ | |
libboost-all-dev \ | |
libpetsc-real-dev \ | |
libvtk${vtk_ver}-dev \ | |
mpi-default-bin \ | |
mpi-default-dev \ | |
pipx \ | |
python3-mpi4py \ | |
python3-petsc4py-real \ | |
python3-pip \ | |
python3-vtk${vtk_ver} | |
- name: Install cppwg | |
run: pipx install . | |
- name: Configure | |
run: | | |
mkdir build && cd build | |
cmake .. | |
working-directory: examples/cells | |
- name: Regenerate wrappers | |
run: | | |
rm -rf dynamic/wrappers | |
cd build | |
make pycells_wrappers | |
working-directory: examples/cells | |
- name: Check for changes | |
run: | | |
git diff --exit-code dynamic/wrappers | |
grep "Unknown class" build/cppwg.log | |
working-directory: examples/cells | |
- name: Build | |
run: | | |
python3 -m venv --system-site-packages .venv | |
. .venv/bin/activate | |
python3 -m pip install -v . | |
working-directory: examples/cells | |
- name: Test | |
run: | | |
. .venv/bin/activate | |
python3 -m unittest discover tests | |
working-directory: examples/cells |