From be9802044ed8a265b11f4d12acd79d079f4175df Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Tue, 24 Sep 2024 11:57:57 -0400 Subject: [PATCH 1/3] Preserve $HOME --- .github/workflows/dev_ci_cd_conda.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev_ci_cd_conda.yml b/.github/workflows/dev_ci_cd_conda.yml index 76818e4..5b2b1b1 100644 --- a/.github/workflows/dev_ci_cd_conda.yml +++ b/.github/workflows/dev_ci_cd_conda.yml @@ -17,15 +17,16 @@ jobs: matrix: python-version: ["3.10"] steps: + - name: Preserve $HOME set in the container + run: echo HOME=/root >> "$GITHUB_ENV" - name: Add ERA5 API key run: | cat < $HOME/.cdsapirc url: ${{ secrets.ERA5_URL }} key: ${{ secrets.ERA5_KEY }} EOF - - uses: actions/checkout@v4 - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: activate-environment: cities-cif environment-file: environment.yml @@ -40,4 +41,4 @@ jobs: GOOGLE_APPLICATION_USER: ${{ secrets.GOOGLE_APPLICATION_USER }} GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} run: | - pytest tests \ No newline at end of file + pytest From 11a6603861e48e292afbf6e06485bf1f3fae4f82 Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Tue, 24 Sep 2024 12:03:49 -0400 Subject: [PATCH 2/3] try again --- .github/workflows/dev_ci_cd_conda.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_ci_cd_conda.yml b/.github/workflows/dev_ci_cd_conda.yml index 5b2b1b1..5355cb7 100644 --- a/.github/workflows/dev_ci_cd_conda.yml +++ b/.github/workflows/dev_ci_cd_conda.yml @@ -18,7 +18,9 @@ jobs: python-version: ["3.10"] steps: - name: Preserve $HOME set in the container - run: echo HOME=/root >> "$GITHUB_ENV" + run: | + echo $HOME + echo HOME=/home/runner >> "$GITHUB_ENV" - name: Add ERA5 API key run: | cat < $HOME/.cdsapirc From dbff5cbc65369b435948162b2903f899a6cc9238 Mon Sep 17 00:00:00 2001 From: Chris Rowe Date: Tue, 24 Sep 2024 16:34:23 -0400 Subject: [PATCH 3/3] v2 --- .github/workflows/dev_ci_cd_conda.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev_ci_cd_conda.yml b/.github/workflows/dev_ci_cd_conda.yml index 5355cb7..ab80d3f 100644 --- a/.github/workflows/dev_ci_cd_conda.yml +++ b/.github/workflows/dev_ci_cd_conda.yml @@ -20,7 +20,7 @@ jobs: - name: Preserve $HOME set in the container run: | echo $HOME - echo HOME=/home/runner >> "$GITHUB_ENV" + echo HOME=$HOME >> "$GITHUB_ENV" - name: Add ERA5 API key run: | cat < $HOME/.cdsapirc @@ -28,7 +28,7 @@ jobs: key: ${{ secrets.ERA5_KEY }} EOF - uses: actions/checkout@v4 - - uses: conda-incubator/setup-miniconda@v3 + - uses: conda-incubator/setup-miniconda@v2 with: activate-environment: cities-cif environment-file: environment.yml