mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Cache conda dependencies for Github workflow execution
This commit is contained in:
parent
5c92db7562
commit
faebde41d2
1 changed files with 11 additions and 1 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -18,17 +18,27 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache conda
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
# Increase this value to reset cache if etc/example-environment.yml has not changed
|
||||
CACHE_NUMBER: 0
|
||||
with:
|
||||
path: ~/conda_pkgs_dir
|
||||
key:
|
||||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
|
||||
hashFiles('etc/example-environment.yml') }}
|
||||
- uses: conda-incubator/setup-miniconda@v2
|
||||
with:
|
||||
activate-environment: test
|
||||
environment-file: environment.yml
|
||||
python-version: 3.8
|
||||
auto-activate-base: false
|
||||
use-only-tar-bz2: true
|
||||
- name: Conda Info
|
||||
run: |
|
||||
conda info
|
||||
conda list
|
||||
- name: Run Pytest
|
||||
run: |
|
||||
conda install pytest
|
||||
python -m pytest
|
||||
|
|
Loading…
Add table
Reference in a new issue