Skip to content

Commit

Permalink
Make stage for conda environment creation for testing built conda pac…
Browse files Browse the repository at this point in the history
…kage
  • Loading branch information
eberrigan committed Aug 23, 2024
1 parent 04e628c commit b0ebdf6
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/build_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,39 +117,29 @@ jobs:
sudo apt-get update
sudo apt-get install libglapi-mesa libegl-mesa0 libegl1 libopengl0 libgl1-mesa-glx
# Test built conda package (Ubuntu and Windows)
- name: Test built conda package (Ubuntu and Windows)
# Create conda environment using built conda package (Ubuntu and Windows)
- name: Create conda environment (Ubuntu and Windows)
if: matrix.os != 'macos-14'
shell: bash -l {0}
run: |
echo "Creating and testing conda environment with sleap package..."
conda create -y -n sleap_test -c file://$BUILD_PATH -c sleap/label/dev -c conda-forge -c nvidia -c anaconda sleap
conda activate sleap_test
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 "List of installed pip packages in the sleap_test environment:"
pip list
echo "Testing sleap package installation..."
sleap_version=$(python -c "import sleap; print(sleap.__version__)")
echo "Test completed using sleap version: $sleap_version"

# Test built conda package (Mac)
# Create conda environment using built conda package (Mac)
# Note channel differences
- name: Test built conda package (Mac)
if: matrix.os == 'macos-14'
shell: bash -l {0}
run: |
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
# Test conda environment
- name: Test conda environment
shell: bash -l {0}
run: |
echo "Python executable after activating sleap_test environment:"
which python
echo "Python version after activating sleap_test environment:"
Expand Down

0 comments on commit b0ebdf6

Please sign in to comment.