update PyGemini gemini3d.read.frame() #176
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: ci | |
on: | |
push: | |
paths: | |
- "**.py" | |
- "**.nml" | |
- "**.cmake" | |
- "**/CMakeLists.txt" | |
- "cmake/libraries.json" | |
- ".github/workflows/ci.yml" | |
# paths ignore starting with "!" | |
- "!ci.cmake" | |
env: | |
CTEST_NO_TESTS_ACTION: error | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
CTEST_PARALLEL_LEVEL: 4 | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
include: | |
# - gen: matlab | |
# cpp: false | |
# TODO: tolerance/shape issues to work through in Matlab--despite MatGemini self-compare CI working | |
- gen: python | |
pyversion: '3.9' | |
- gen: none | |
steps: | |
- name: Git Checkout GemCI | |
uses: actions/checkout@v4 | |
- name: Checkout Gemini3D-External | |
uses: actions/checkout@v4 | |
with: | |
repository: gemini3d/external | |
path: gemext | |
- name: Install Prereqs | |
run: | | |
sudo apt update | |
sudo $(cmake -P gemext/scripts/requirements.cmake) libmumps-dev | |
- name: Install model libraries | |
timeout-minutes: 15 | |
run: cmake -Dmumps_only:BOOL=true -Dfind:BOOL=true -P gemext/build-online.cmake | |
# --- Python | |
- name: Setup Python ${{ matrix.pyversion }} | |
if: ${{ matrix.gen == 'python' }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '${{ matrix.pyversion }}' | |
- name: Checkout PyGemini | |
if: ${{ matrix.gen == 'python' }} | |
uses: actions/checkout@v4 | |
with: | |
repository: gemini3d/pygemini | |
path: pygemini | |
- name: install PyGemini | |
if: ${{ matrix.gen == 'python' }} | |
run: python -m pip install -e ./pygemini | |
- name: Configure Python=${{ matrix.pyversion }} | |
if: ${{ matrix.gen != 'matlab' }} | |
run: >- | |
cmake --preset default | |
-Dpython:BOOL=${{ matrix.gen == 'python' }} | |
# --- Matlab | |
- name: Install MATLAB | |
if: ${{ matrix.gen == 'matlab' }} | |
uses: matlab-actions/setup-matlab@v1 | |
- name: Checkout MatGemini | |
if: ${{ matrix.gen == 'matlab' }} | |
uses: actions/checkout@v4 | |
with: | |
repository: gemini3d/mat_gemini | |
path: mat_gemini | |
submodules: true | |
- name: Configure with Matlab | |
if: ${{ matrix.gen == 'matlab' }} | |
run: >- | |
cmake --preset matlab | |
env: | |
MATGEMINI: ${{ github.workspace }}/mat_gemini | |
# --- build | |
- name: build Gemini3D | |
run: cmake --build build --parallel | |
- name: Run Bounds check | |
run: ctest --preset default -R run_bounds_check -E 3D |