Skip to content

Commit

Permalink
test conda package on macos runner
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Apr 23, 2024
1 parent b4fdc74 commit 72bc341
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion .conda_mac/condarc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# This file is not used at the moment, but when github actions can be used to build the package, it needs to be listed.
# https://github.com/github/roadmap/issues/528

channels:
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/build_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ jobs:
conda build .conda_mac --output-folder build
echo "BUILD_PATH=$(pwd)/build" >> "$GITHUB_ENV"
# Test
- name: Test built conda package
# Test built conda package (Ubuntu and Windows)
- name: Test built conda package (Ubuntu and Windows)
if: matrix.os != 'macos-14'
shell: bash -l {0}
run: |
echo "Build path is: $BUILD_PATH"
Expand All @@ -116,6 +117,21 @@ jobs:
python -c "import sleap; print(sleap.__version__)"
echo "Test completed using sleap version: $(python -c 'import sleap; print(sleap.__version__)')"
# Test built conda package (Mac)
- name: Test built conda package (Mac)
if: matrix.os == 'macos-14'
shell: bash -l {0}
run: |
echo "Build path is: $BUILD_PATH"
conda deactivate
echo $(conda info)
echo "Testing conda package with sleap"
conda create -y -n sleap_test -c file://$BUILD_PATH -c conda-forge -c nvidia -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__)')"
# # Login to conda (Ubuntu)
# - name: Login to Anaconda (Ubuntu)
# if: matrix.os == 'ubuntu-22.04'
Expand Down

0 comments on commit 72bc341

Please sign in to comment.