Skip to content

Commit

Permalink
#133: ci: Install necessary pip packages for JSON validation on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Jan 14, 2025
1 parent 215b0b4 commit 5c33af7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:
run: |
brew update && brew install coreutils lcov xquartz
- name: Setup python requirements for JSON datafile validation
run: |
pip install PyYAML && pip install Brotli && pip install schema && pip install nanobind
- name: Load cache (VTK, Miniconda3)
id: base-cache
uses: actions/cache@v4
Expand Down
10 changes: 10 additions & 0 deletions ci/python_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ VTK_DIR="${VTK_DIR:-$PARENT_DIR/vtk/build}"

VT_TV_SRC_DIR=${VT_TV_SRC_DIR:-$PARENT_DIR}

$CONDA_PATH/bin/conda init bash
$CONDA_PATH/bin/conda init zsh
if [ -f ~/.zshrc ]; then . ~/.zshrc; fi
if [ -f ~/.profile ]; then . ~/.profile; fi
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

echo "Conda path: $(which conda)"
echo "Conda version: $(conda --version)"
conda deactivate

for env in $(conda env list | grep -E '^py' | perl -lane 'print $F[-1]' | xargs ls -ld | perl -lane 'print $F[-1]' | sed -E 's|^.*/(.*)$|\1|'); do
echo "::group::Build Python Bindings (${env})"

Expand Down

0 comments on commit 5c33af7

Please sign in to comment.