Skip to content

Commit

Permalink
Update ci [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Oct 3, 2024
1 parent 116b1b1 commit 25cf975
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
8 changes: 3 additions & 5 deletions ci/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

# How to manage CI/dev environments ?

You can use the ``envs_manager`` bash shel script located in this folder
Use the ``envs_manager`` bash shell script located in this folder.

## Environment files update procedure

To update the suite of environments (for a new release for instance), the procedure could be:

- Build the ``free`` versions environment (e.g. CLI: ``envs_manager -i free`` will install all envs for all Python versions)
- For python versions in py=[3.7, 3.8, 3.9]:
- For python versions in py=[3.9, 3.10]:
- For **all** packages:
- Activate the ``free`` environment:
- Execute the CLI ``show_versions --conda --free`` and update ``py<py>-all-free.yml`` file accordingly
Expand All @@ -17,9 +17,7 @@ To update the suite of environments (for a new release for instance), the proced
- Activate the ``core`` environment:
- Execute the CLI ``show_versions --conda --free --core`` and update ``py<py>-core-free.yml`` file accordingly
- Execute the CLI ``show_versions --conda --core`` and update ``py<py>-core-pinned.yml`` file accordingly
- For **min** packages:
- Check if CI tests are still succeeding, if yes, let unchanged, if no: ...

```bash
./envs_manager -i py37-core-free
./envs_manager -i py310-core-free
```
16 changes: 14 additions & 2 deletions ci/envs_manager
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,19 @@ declare -A ENV_LIST=(
['argopy-py310-core-free']="requirements/py3.10-core-free.yml"
['argopy-py310-core-pinned']="requirements/py3.10-core-pinned.yml"

['argopy-py311-all-free']="requirements/py3.11-all-free.yml"
['argopy-py311-core-free']="requirements/py3.11-core-free.yml"

['argopy-py312-all-free']="requirements/py3.12-all-free.yml"
['argopy-py312-core-free']="requirements/py3.12-core-free.yml"

)

#for k in "${!ENV_LIST[@]}"
#do
# echo $k ' - ' ${ENV_LIST["$k"]}
#done |
#sort | xargs -n3

#########################
# FUNCTIONS
Expand All @@ -61,9 +72,10 @@ List_avail_envs () {
for NAME in "${!ENV_LIST[@]}"
do
:
FILE=${ENV_LIST[$NAME]}
# FILE=${ENV_LIST[$NAME]}
echo " ${NAME}"
done
done |
sort | xargs -n1
}

fix_kernel_path (){
Expand Down

0 comments on commit 25cf975

Please sign in to comment.