From 7c773d29ef355f0eac28a9bf3413bbfd2a81c578 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 29 Jan 2022 03:43:34 -0500 Subject: [PATCH] Update github workflow to use environment.yml under config/ directory --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd7c9d34..7130b0de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: miniforge-version: latest activate-environment: test use-mamba: true - environment-file: environment.yml + environment-file: config/environment.yml python-version: 3.8 auto-activate-base: false use-only-tar-bz2: true @@ -44,14 +44,14 @@ jobs: - uses: actions/cache@v2 with: path: ${{ matrix.prefix }} - key: ${{ matrix.label }}-conda-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} + key: ${{ matrix.label }}-conda-${{ hashFiles('config/environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }} env: # Increase this value to reset cache if environment.yml has not changed CACHE_NUMBER: 0 id: cache - name: Update environment - run: mamba env update -n test -f environment.yml + run: mamba env update -n test -f config/environment.yml if: steps.cache.outputs.cache-hit != 'true' - name: Run Pytest