Skip to content

Commit

Permalink
Use the -k explicit option when creating lockfiles in CI (#107)
Browse files Browse the repository at this point in the history
* Specify name of lockfile in .cirrus.yml

* Use -k explicit
  • Loading branch information
spencerkclark authored Apr 2, 2022
1 parent aec8a37 commit 0b3a227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ linux_task:
- echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${NCTA_CACHE_BUILD}"
- cat ${CIRRUS_WORKING_DIR}/requirements/py$(echo ${PY_VER} | tr -d ".").yml
populate_script:
- conda-lock --mamba --platform linux-64 --file ${CIRRUS_WORKING_DIR}/requirements/py$(echo ${PY_VER} | tr -d ".").yml
- conda-lock -k explicit --mamba --platform linux-64 --file ${CIRRUS_WORKING_DIR}/requirements/py$(echo ${PY_VER} | tr -d ".").yml
- mamba create --name py${PY_VER} --quiet --file conda-linux-64.lock
- cp conda-linux-64.lock ${HOME}/mambaforge/envs/py${PY_VER}
test_script:
Expand Down

0 comments on commit 0b3a227

Please sign in to comment.