Skip to content

Commit 2a6423c

Browse files
[CI] Generate conda env directly with required packages
1 parent cafcec0 commit 2a6423c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/caches_cron_job.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ jobs:
4545
run: echo "Cache-hit == ${{steps.cache-conda-env.outputs.cache-hit == 'true'}}"
4646

4747
# activate environment if not restored from cache
48-
- uses: conda-incubator/setup-miniconda@v2
48+
- uses: conda-incubator/setup-miniconda@v2.2.0
4949
if: steps.cache-conda-env.outputs.cache-hit != 'true'
5050
with:
5151
activate-environment: neo-test-env
52+
environment-file: environment_testing.yml
5253
python-version: 3.9
5354

5455
- name: Create the conda environment to be cached
5556
if: steps.cache-conda-env.outputs.cache-hit != 'true'
5657
# create conda env, configure git and install pip, neo and test dependencies from master
5758
# for PRs that change dependencies, this environment will be updated in the test workflow
5859
run: |
59-
conda env update neo-test-env --file environment_testing.yml
6060
git config --global user.email "neo_ci@fake_mail.com"
6161
git config --global user.name "neo CI"
6262
python -m pip install -U pip # Official recommended way

0 commit comments

Comments
 (0)