|
12 | 12 | branches:
|
13 | 13 | # - develop
|
14 | 14 | - fakebranch
|
15 |
| - # - talmo/fix-mac-v140 |
16 | 15 |
|
17 | 16 | jobs:
|
18 | 17 | build:
|
@@ -83,20 +82,91 @@ jobs:
|
83 | 82 | shell: bash -l {0}
|
84 | 83 | run: |
|
85 | 84 | conda build .conda --output-folder build
|
| 85 | + echo "BUILD_PATH=$(pwd)/build" >> "$GITHUB_ENV" |
86 | 86 |
|
87 |
| - # Build conda package (Windows) |
| 87 | + # Build conda package (Windows) |
88 | 88 | - name: Build conda package (Windows)
|
89 | 89 | if: matrix.os == 'windows-2022'
|
90 | 90 | shell: powershell
|
91 | 91 | run: |
|
92 | 92 | conda build .conda --output-folder build
|
| 93 | + echo "BUILD_PATH=\$(pwd)\build" >> "$env:GITHUB_ENV" |
93 | 94 |
|
94 | 95 | # Build conda package (Mac)
|
95 | 96 | - name: Build conda package (Mac)
|
96 | 97 | if: matrix.os == 'macos-14'
|
97 | 98 | shell: bash -l {0}
|
98 | 99 | run: |
|
99 | 100 | conda build .conda_mac --output-folder build
|
| 101 | + echo "BUILD_PATH=$(pwd)/build" >> "$GITHUB_ENV" |
| 102 | +
|
| 103 | + # Test built conda package (Ubuntu and Windows) |
| 104 | + - name: Test built conda package (Ubuntu and Windows) |
| 105 | + if: matrix.os != 'macos-14' |
| 106 | + shell: bash -l {0} |
| 107 | + run: | |
| 108 | + echo "Current build path: $BUILD_PATH" |
| 109 | + conda deactivate |
| 110 | + |
| 111 | + echo "Python executable before activating environment:" |
| 112 | + which python |
| 113 | + echo "Python version before activating environment:" |
| 114 | + python --version |
| 115 | + echo "Conda info before activating environment:" |
| 116 | + conda info |
| 117 | + |
| 118 | + echo "Creating and testing conda environment with sleap package..." |
| 119 | + conda create -y -n sleap_test -c file://$BUILD_PATH -c sleap/label/dev -c conda-forge -c nvidia -c anaconda sleap |
| 120 | + conda activate sleap_test |
| 121 | + |
| 122 | + echo "Python executable after activating sleap_test environment:" |
| 123 | + which python |
| 124 | + echo "Python version after activating sleap_test environment:" |
| 125 | + python --version |
| 126 | + echo "Conda info after activating sleap_test environment:" |
| 127 | + conda info |
| 128 | + echo "List of installed conda packages in the sleap_test environment:" |
| 129 | + conda list |
| 130 | + echo "List of installed pip packages in the sleap_test environment:" |
| 131 | + pip list |
| 132 | + |
| 133 | + echo "Testing sleap package installation..." |
| 134 | + sleap_version=$(python -c "import sleap; print(sleap.__version__)") |
| 135 | + echo "Test completed using sleap version: $sleap_version" |
| 136 | + |
| 137 | + # Test built conda package (Mac) |
| 138 | + - name: Test built conda package (Mac) |
| 139 | + if: matrix.os == 'macos-14' |
| 140 | + shell: bash -l {0} |
| 141 | + run: | |
| 142 | + echo "Current build path: $BUILD_PATH" |
| 143 | + conda deactivate |
| 144 | + |
| 145 | + echo "Python executable before activating environment:" |
| 146 | + which python |
| 147 | + echo "Python version before activating environment:" |
| 148 | + python --version |
| 149 | + echo "Conda info before activating environment:" |
| 150 | + conda info |
| 151 | + |
| 152 | + echo "Creating and testing conda environment with sleap package..." |
| 153 | + conda create -y -n sleap_test -c file://$BUILD_PATH -c conda-forge -c anaconda sleap |
| 154 | + conda activate sleap_test |
| 155 | + |
| 156 | + echo "Python executable after activating sleap_test environment:" |
| 157 | + which python |
| 158 | + echo "Python version after activating sleap_test environment:" |
| 159 | + python --version |
| 160 | + echo "Conda info after activating sleap_test environment:" |
| 161 | + conda info |
| 162 | + echo "List of installed conda packages in the sleap_test environment:" |
| 163 | + conda list |
| 164 | + echo "List of installed pip packages in the sleap_test environment:" |
| 165 | + pip list |
| 166 | + |
| 167 | + echo "Testing sleap package installation..." |
| 168 | + sleap_version=$(python -c "import sleap; print(sleap.__version__)") |
| 169 | + echo "Test completed using sleap version: $sleap_version" |
100 | 170 |
|
101 | 171 | # # Login to conda (Ubuntu)
|
102 | 172 | # - name: Login to Anaconda (Ubuntu)
|
|
0 commit comments