Skip to content

Commit

Permalink
make print statements more readable for troubleshooting python versio…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
eberrigan committed Apr 23, 2024
1 parent 9c31c28 commit e8d3f35
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/build_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,35 @@ jobs:
if: matrix.os == 'macos-14'
shell: bash -l {0}
run: |
echo "Build path is: $BUILD_PATH"
echo "Current build path: $BUILD_PATH"
conda deactivate
echo $(conda info)
echo "Testing conda package with sleap"
echo "Python executable before activating environment:"
which python
echo "Python version before activating environment:"
python --version
echo "Conda info before activating environment:"
conda info

echo "Creating and testing conda environment with sleap package..."
conda create -y -n sleap_test -c file://$BUILD_PATH -c conda-forge -c anaconda sleap
conda activate sleap_test
echo $(conda list)
python -c "import sleap; print(sleap.__version__)"
echo "Test completed using sleap version: $(python -c 'import sleap; print(sleap.__version__)')"

echo "Python executable after activating sleap_test environment:"
which python
echo "Python version after activating sleap_test environment:"
python --version
echo "Conda info after activating sleap_test environment:"
conda info

echo "List of installed conda packages in the sleap_test environment:"
conda list

echo "Testing sleap package installation..."
python -c "import sleap; print('sleap version:', sleap.__version__)"

sleap_version=$(python -c "import sleap; print(sleap.__version__)")
echo "Test completed using sleap version: $sleap_version"

# # Login to conda (Ubuntu)
# - name: Login to Anaconda (Ubuntu)
Expand Down

0 comments on commit e8d3f35

Please sign in to comment.