Skip to content

Commit

Permalink
circleci: replace mambaforge with miniforge3 (#33)
Browse files Browse the repository at this point in the history
+ .circleci/config.yml: replace mambaforge with miniforge3

+ .github: add release.yml to ignore contributions by bots in release notes
  • Loading branch information
yunjunz authored Mar 10, 2024
1 parent 29086e7 commit 293308e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ jobs:
docker:
- image: ubuntu:bionic
environment:
CONDA_PREFIX: /root/tools/mambaforge
CONDA_PREFIX: /root/tools/miniforge
PYAPS_HOME: /root/tools/PyAPS
user: root
working_directory: /root/tools/PyAPS
# Checkout the code as the first step. This is a dedicated CircleCI step.
steps:
- checkout
- run:
name: Setting Environment with Mambaforge
name: Setting Environment with Miniforge
command: |
apt update
apt-get update --yes && apt-get upgrade --yes
apt-get install --yes git wget
# download and install mambaforge
# download and install miniforge
mkdir -p ${HOME}/tools
cd ${HOME}/tools
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
bash Mambaforge-Linux-x86_64.sh -b -p ${HOME}/tools/mambaforge
${HOME}/tools/mambaforge/bin/mamba init bash
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
bash Miniforge3-Linux-x86_64.sh -b -p ${HOME}/tools/miniforge
${HOME}/tools/miniforge/bin/mamba init bash
# modify/export env var PATH to BASH_ENV to be shared across run steps
echo 'export PATH=${CONDA_PREFIX}/bin:${PATH}' >> ${BASH_ENV}
Expand Down
7 changes: 7 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# .github/release.yml

changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ url: https://cds.climate.copernicus.eu/api/v2
key: 12345:abcdefghij-134-abcdefgadf-82391b9d3f
```

where 12345 is your personal user ID (UID), the part behind the colon is your personal API key. More details can be found [here](https://cds.climate.copernicus.eu/api-how-to). Alternatively, you could also edit the `model.cfg` file in the package directory, `site-packages/pyaps3` if installed via conda, and fill in the `[CDS]` section.
where 12345 is your personal user ID (UID), the part behind the colon is your personal API key. More details can be found [here](https://cds.climate.copernicus.eu/api-how-to). Alternatively, you could edit the `model.cfg` file in the package directory, `site-packages/pyaps3` if installed via conda, and fill in the `[CDS]` section.

+ **Make sure** that you accept the data license in the Terms of use on ECMWF website.

Expand Down

0 comments on commit 293308e

Please sign in to comment.