Skip to content

Commit

Permalink
Update checkout and miniconda runners
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Aug 31, 2024
1 parent b75e8c3 commit fa91d06
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/build_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,19 @@ jobs:
condarc: .conda_mac/condarc.yaml
steps:
# Setup
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if environment_build.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment_build.yml', 'requirements.txt') }}
- name: Checkout
uses: actions/checkout@v4

- name: Setup Miniconda
# https://github.com/conda-incubator/setup-miniconda
uses: conda-incubator/setup-miniconda@v2.0.1
uses: conda-incubator/setup-miniconda@v3.0.3
with:
miniforge-version: latest
condarc-file: ${{ matrix.condarc }}
python-version: 3.7
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
environment-file: environment_build.yml
condarc-file: ${{ matrix.condarc }}
activate-environment: sleap_ci
conda-solver: "libmamba"

- name: Print environment info
shell: bash -l {0}
run: |
Expand Down

0 comments on commit fa91d06

Please sign in to comment.