Skip to content

Commit

Permalink
#97: fix invalid command in shell to list python environments
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 6, 2024
1 parent 6eda52b commit d186992
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
sudo CONDA_PATH=${{ env.CONDA_PATH }} bash ./ci/setup_conda.sh ${{ join(matrix.host.python) }}
- name: Reload environment variables
- name: Reload shell variables
run: |
if [ -f ~/.zshrc ]; then . ~/.zshrc; fi
if [ -f ~/.profile ]; then . ~/.profile; fi
Expand Down
2 changes: 1 addition & 1 deletion ci/python_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CONDA_PATH=${CONDA_PATH:-"/opt/conda"}

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
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})"

# Activate conda environment
Expand Down
2 changes: 1 addition & 1 deletion ci/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ chmod +x ./ci/python_test.sh
# 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 ^py | perl -lane 'print $F[-1]' | xargs ls -lrt1d | perl -lane 'print $F[-1]' | sed -r 's/^.*\/(.*)$/\1/'); do
# Clear vizualization output directory
rm -rf $VT_TV_OUTPUT_DIR/python_tests/*

Expand Down

0 comments on commit d186992

Please sign in to comment.