Skip to content

Commit

Permalink
remove cachinh
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Jun 7, 2024
1 parent d6d17f0 commit 966d307
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .github/workflows/garnetreduction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,44 +42,10 @@ jobs:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: garnet_reduction
# auto-update-conda: true
auto-update-conda: true
channels: conda-forge, mantid/label/nightly, oncat
# mamba-version: "*"
# environment-file: environment.yml
- name: Get Date
id: get-date
run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')"
shell: bash

- name: Cache Conda env
uses: actions/cache@v4
with:
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('environment.yml') }}-${{
env.CACHE_NUMBER }}
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 4
id: cache

- name: Create environment
shell: bash -l {0}
run:
conda env update --name garnet_reduction -f environment.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Activate environment
shell: bash -el {0}
run: conda activate garnet_reduction
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda list
shell: bash -el {0}
run: conda list
mamba-version: "*"
environment-file: environment.yml
- name: building python wheel
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 966d307

Please sign in to comment.