From e9fdac3f8954fd9f213844a20f278590a1b0d633 Mon Sep 17 00:00:00 2001 From: eberrigan Date: Wed, 22 May 2024 11:59:30 -0700 Subject: [PATCH] testing caching --- .github/workflows/build.yml | 135 +++++++++++++++++++----------------- 1 file changed, 72 insertions(+), 63 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e00e89d0..effc695a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,15 @@ name: Build on: + push: + paths: + - '.conda/meta.yaml' + - '.conda_mac/meta.yaml' + - '.github/workflows/build.yml' + branches: + # - develop + # - fakebranch + - elizabeth/upgrade-actions-for-release release: types: - published @@ -44,7 +53,7 @@ jobs: environment-file: environment_build.yml activate-environment: sleap_ci conda-solver: "libmamba" - # use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! + use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Print environment info shell: bash -l {0} @@ -161,71 +170,71 @@ jobs: 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) - if: matrix.os == 'ubuntu-22.04' - env: - ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} - shell: bash -l {0} - run: | - yes 2>/dev/null | anaconda login --username sleap --password "$ANACONDA_LOGIN" || true + # # Login to conda (Ubuntu) + # - name: Login to Anaconda (Ubuntu) + # if: matrix.os == 'ubuntu-22.04' + # env: + # ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} + # shell: bash -l {0} + # run: | + # yes 2>/dev/null | anaconda login --username sleap --password "$ANACONDA_LOGIN" || true - # Login to conda (Windows) - - name: Login to Anaconda (Windows) - if: matrix.os == 'windows-2019' - env: - ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} - shell: powershell - run: | - echo "yes" | anaconda login --username sleap --password "$env:ANACONDA_LOGIN" + # # Login to conda (Windows) + # - name: Login to Anaconda (Windows) + # if: matrix.os == 'windows-2019' + # env: + # ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} + # shell: powershell + # run: | + # echo "yes" | anaconda login --username sleap --password "$env:ANACONDA_LOGIN" - # Login to conda (Mac) - - name: Login to Anaconda (Mac) - if: matrix.os == 'macos-14' - env: - ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} - shell: bash -l {0} - run: | - yes 2>/dev/null | anaconda login --username sleap --password "$ANACONDA_LOGIN" || true + # # Login to conda (Mac) + # - name: Login to Anaconda (Mac) + # if: matrix.os == 'macos-14' + # env: + # ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} + # shell: bash -l {0} + # run: | + # yes 2>/dev/null | anaconda login --username sleap --password "$ANACONDA_LOGIN" || true - # Upload conda package (Windows) - - name: Upload conda package (Windows/main) - if: matrix.os == 'windows-2019' && !github.event.release.prerelease - shell: powershell - run: | - anaconda -v upload "build\win-64\*.tar.bz2" - - name: Upload conda package (Windows/dev) - if: matrix.os == 'windows-2019' && github.event.release.prerelease - shell: powershell - run: | - anaconda -v upload "build\win-64\*.tar.bz2" --label dev + # # Upload conda package (Windows) + # - name: Upload conda package (Windows/main) + # if: matrix.os == 'windows-2019' && !github.event.release.prerelease + # shell: powershell + # run: | + # anaconda -v upload "build\win-64\*.tar.bz2" + # - name: Upload conda package (Windows/dev) + # if: matrix.os == 'windows-2019' && github.event.release.prerelease + # shell: powershell + # run: | + # anaconda -v upload "build\win-64\*.tar.bz2" --label dev - # Upload conda package (Ubuntu) - - name: Upload conda package (Ubuntu/main) - if: matrix.os == 'ubuntu-22.04' && !github.event.release.prerelease - shell: bash -l {0} - run: | - anaconda -v upload build/linux-64/*.tar.bz2 - - name: Upload conda package (Ubuntu/dev) - if: matrix.os == 'ubuntu-22.04' && github.event.release.prerelease - shell: bash -l {0} - run: | - anaconda -v upload build/linux-64/*.tar.bz2 --label dev + # # Upload conda package (Ubuntu) + # - name: Upload conda package (Ubuntu/main) + # if: matrix.os == 'ubuntu-22.04' && !github.event.release.prerelease + # shell: bash -l {0} + # run: | + # anaconda -v upload build/linux-64/*.tar.bz2 + # - name: Upload conda package (Ubuntu/dev) + # if: matrix.os == 'ubuntu-22.04' && github.event.release.prerelease + # shell: bash -l {0} + # run: | + # anaconda -v upload build/linux-64/*.tar.bz2 --label dev - # Upload conda package (Mac) - - name: Upload conda package (Mac/main) - if: matrix.os == 'macos-14' && !github.event.release.prerelease - shell: bash -l {0} - run: | - anaconda -v upload build/osx-arm64/*.tar.bz2 --label dev - - name: Upload conda package (Mac/dev) - if: matrix.os == 'macos-14' && github.event.release.prerelease - shell: bash -l {0} - run: | - anaconda -v upload build/osx-arm64/*.tar.bz2 --label dev + # # Upload conda package (Mac) + # - name: Upload conda package (Mac/main) + # if: matrix.os == 'macos-14' && !github.event.release.prerelease + # shell: bash -l {0} + # run: | + # anaconda -v upload build/osx-arm64/*.tar.bz2 --label dev + # - name: Upload conda package (Mac/dev) + # if: matrix.os == 'macos-14' && github.event.release.prerelease + # shell: bash -l {0} + # run: | + # anaconda -v upload build/osx-arm64/*.tar.bz2 --label dev - # Logout - - name: Logout from Anaconda - shell: bash -l {0} - run: | - anaconda logout + # # Logout + # - name: Logout from Anaconda + # shell: bash -l {0} + # run: | + # anaconda logout