Skip to content

Commit 0b9fb77

Browse files
authored
Modify lock-prod.yml for Conda setup and locking
1 parent afaf262 commit 0b9fb77

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/lock-prod.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@ jobs:
1212
- name: Setup Miniconda
1313
uses: conda-incubator/setup-miniconda@v3
1414
with:
15-
miniconda-version: 'latest'
16-
python-version: 3.12
15+
miniconda-version: "latest"
16+
python-version: "3.12"
17+
channels: conda-forge
1718
activate-environment: lock-env
18-
19-
- name: Initialize Conda
20-
run: conda init bash
21-
shell: bash
2219

2320
- name: Create lock file
21+
shell: bash -el {0}
2422
run: |
2523
cd $GITHUB_WORKSPACE
2624
conda install -c conda-forge -y -n lock-env conda-lock
2725
echo "DATE_TAG=$(date "+%F")" >> $GITHUB_ENV
28-
conda activate lock-env
2926
conda-lock lock -c conda-forge -f desc-python/conda/lock/environment.yml -f desc-python/conda/lock/pyproject.toml --lockfile desc-py-lock-${{env.DATE_TAG}}.yml
3027
cd desc-python
3128
git checkout lock-prod

0 commit comments

Comments
 (0)