Skip to content

Commit

Permalink
#133: ci: Fix conda env grep regex for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Dec 30, 2024
1 parent a1c666e commit 215b0b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ jobs:
run: |
sudo CONDA_PATH=${{ env.CONDA_PATH }} bash ./ci/setup_conda.sh ${{ join(matrix.host.python) }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Reload shell variables
run: |
if [ -f ~/.zshrc ]; then . ~/.zshrc; fi
Expand Down
4 changes: 2 additions & 2 deletions ci/python_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ VTK_DIR="${VTK_DIR:-$PARENT_DIR/vtk/build}"

VT_TV_SRC_DIR=${VT_TV_SRC_DIR:-$PARENT_DIR}

for env in $(conda env list | grep ^py | perl -lane 'print $F[-1]' | xargs ls -lrt1d | perl -lane 'print $F[-1]' | sed -r 's/^.*\/(.*)$/\1/'); do
echo "::group::Build Python Bindings (${python_version})"
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})"

# Activate conda environment
. $CONDA_PATH/etc/profile.d/conda.sh && conda activate $env
Expand Down
4 changes: 2 additions & 2 deletions ci/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ pushd $VT_TV_SRC_DIR
# Create vizualization output directory (required).
mkdir -p $VT_TV_OUTPUT_DIR/python_tests

for env in $(conda env list | grep ^py | perl -lane 'print $F[-1]' | xargs ls -lrt1d | perl -lane 'print $F[-1]' | sed -r 's/^.*\/(.*)$/\1/'); do
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
# Clear vizualization output directory
rm -rf $VT_TV_OUTPUT_DIR/python_tests/*

echo "::group::Test Python Bindings (${python_version})"
echo "::group::Test Python Bindings (${env})"

# Activate conda environment
. $CONDA_PATH/etc/profile.d/conda.sh && conda activate $env
Expand Down

0 comments on commit 215b0b4

Please sign in to comment.