mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Update github workflow to use environment.yml under config/ directory
This commit is contained in:
parent
c31abad0a6
commit
7c773d29ef
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
||||||
miniforge-version: latest
|
miniforge-version: latest
|
||||||
activate-environment: test
|
activate-environment: test
|
||||||
use-mamba: true
|
use-mamba: true
|
||||||
environment-file: environment.yml
|
environment-file: config/environment.yml
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
auto-activate-base: false
|
auto-activate-base: false
|
||||||
use-only-tar-bz2: true
|
use-only-tar-bz2: true
|
||||||
|
@ -44,14 +44,14 @@ jobs:
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ matrix.prefix }}
|
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:
|
env:
|
||||||
# Increase this value to reset cache if environment.yml has not changed
|
# Increase this value to reset cache if environment.yml has not changed
|
||||||
CACHE_NUMBER: 0
|
CACHE_NUMBER: 0
|
||||||
id: cache
|
id: cache
|
||||||
|
|
||||||
- name: Update environment
|
- 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'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
|
|
Loading…
Reference in a new issue