mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Cache conda dependencies for Github workflow execution
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -18,17 +18,27 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- uses: conda-incubator/setup-miniconda@v2
|
||||||
with:
|
with:
|
||||||
activate-environment: test
|
activate-environment: test
|
||||||
environment-file: environment.yml
|
environment-file: environment.yml
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
auto-activate-base: false
|
auto-activate-base: false
|
||||||
|
use-only-tar-bz2: true
|
||||||
- name: Conda Info
|
- name: Conda Info
|
||||||
run: |
|
run: |
|
||||||
conda info
|
conda info
|
||||||
conda list
|
conda list
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
run: |
|
run: |
|
||||||
conda install pytest
|
|
||||||
python -m pytest
|
python -m pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user