Skip to content

actions: run create-conda-envs nightly #788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/actions/create-conda-envs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ runs:
fi
echo "CYLC_RELEASE=$CYLC_RELEASE" >> "${GITHUB_ENV}"

- shell: bash
working-directory: ${{ inputs.working_directory }}
run: |
# use mamba (much faster)
# use this when released: https://github.com/mamba-org/setup-mamba
conda install -n base -c conda-forge -y mamba
- name: setup micromamba
uses: mamba-org/setup-micromamba@v2

- shell: bash
- shell: bash -el {0}
working-directory: ${{ inputs.working_directory }}
run: |
for env_file in $(echo src/reference/environments/envs/*.yml); do
Expand All @@ -50,8 +46,8 @@ runs:
"${env_file}" \
> "${new_env_file}"
# create the env
conda run -n base mamba env create -f "${new_env_file}" -n cylc-env
micromamba env create -f "${new_env_file}" -n cylc-env
# test the env
conda run -n cylc-env cylc version
conda env remove -n cylc-env
micromamba run -n cylc-env cylc version
micromamba env remove -n cylc-env
done
4 changes: 3 additions & 1 deletion .github/workflows/create-conda-envs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- '.github/workflows/create-conda-envs.yml'
- '.github/actions/create-conda-envs/*'
- 'src/reference/environments/env/*.ya?ml'
schedule:
- cron: '35 0 * * *'
workflow_dispatch:
inputs:
cylc_flow_version:
Expand All @@ -22,7 +24,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python: [3.7, 3.8, 3.9]
python: [3.8, 3.9]
steps:
- name: checkout cylc-doc
uses: actions/checkout@v4
Expand Down
Loading