From 6b2bc7e204b2d22b5d7e5edfc5d28b54cd9d5865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 19 Feb 2024 11:38:59 +0100 Subject: [PATCH 1/6] MNT: fix link_checker.yaml --- .github/workflows/link-checker.yaml | 38 ++++++++--------------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 88cdc4d2..2eefbb32 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -24,6 +24,10 @@ on: default: 'true' type: string +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: link-checker: runs-on: ubuntu-latest @@ -31,36 +35,14 @@ jobs: run: shell: bash -l {0} steps: - - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v4 - - - name: Setup Mambaforge - uses: conda-incubator/setup-miniconda@v2 + - name: Setup Micromamba + uses: mamba-org/setup-micromamba@v1 with: - miniforge-variant: Mambaforge - miniforge-version: latest - activate-environment: ${{ inputs.environment_name }} - use-mamba: true - - - name: Set cache date - if: inputs.use_cached_environment == 'true' - run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV - - - uses: actions/cache@v3 - if: inputs.use_cached_environment == 'true' - with: - path: /usr/share/miniconda3/envs/${{ inputs.environment_name }} - key: linux-64-conda-${{ hashFiles('${{ inputs.environment_file }}') }}-${{ env.DATE }} - id: cache - - - name: Update environment - if: | - inputs.use_cached_environment != 'true' - || steps.cache.outputs.cache-hit != 'true' - run: mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }} + environment-name: ${{ inputs.environment_name }} + environment-file: ${{ inputs.environment_file }} + cache-environment: ${{ inputs.use_cached_environment }} + cache-environment-key: "linux-64-conda-${{ hashFiles('${{ inputs.environment_file }}') }}-${{ env.TODAY }}" - name: Disable notebook execution shell: python From 9b5ffb467a11485b7931b4a30d18b745b7e8ef8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 19 Feb 2024 12:36:20 +0100 Subject: [PATCH 2/6] MNT: try lrose-core for ubuntu version 20.04 --- binder/appendix.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binder/appendix.txt b/binder/appendix.txt index ff065415..b8da5c0b 100644 --- a/binder/appendix.txt +++ b/binder/appendix.txt @@ -1,7 +1,7 @@ USER root ENV DEBIAN_FRONTEND=noninteractive RUN apt update && \ - wget -q -O /tmp/lrose.deb https://github.com/NCAR/lrose-core/releases/download/lrose-core-20220222/lrose-core-20220222.ubuntu_18.04.amd64.deb && \ + wget -q -O /tmp/lrose.deb https://github.com/NCAR/lrose-core/releases/download/lrose-core-20220222/lrose-core-20220222.ubuntu_20.04.amd64.deb && \ apt-get -y install /tmp/lrose.deb && \ apt-get clean && \ rm -rf /tmp/lrose.deb From 4077191f8e96665545db6180afbbd38e365c21b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 19 Feb 2024 12:49:30 +0100 Subject: [PATCH 3/6] MNT: use bionic base image and lrose-core for 18.04 --- .github/workflows/build-book.yaml | 1 + binder/appendix.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-book.yaml b/.github/workflows/build-book.yaml index ffe23fc9..345c616d 100644 --- a/.github/workflows/build-book.yaml +++ b/.github/workflows/build-book.yaml @@ -41,6 +41,7 @@ jobs: DOCKER_REGISTRY: "ghcr.io" PUBLIC_REGISTRY_CHECK: true APPENDIX_FILE: "binder/appendix.txt" + REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=docker.io/library/buildpack-deps:bionic build-book: runs-on: ubuntu-latest diff --git a/binder/appendix.txt b/binder/appendix.txt index b8da5c0b..ff065415 100644 --- a/binder/appendix.txt +++ b/binder/appendix.txt @@ -1,7 +1,7 @@ USER root ENV DEBIAN_FRONTEND=noninteractive RUN apt update && \ - wget -q -O /tmp/lrose.deb https://github.com/NCAR/lrose-core/releases/download/lrose-core-20220222/lrose-core-20220222.ubuntu_20.04.amd64.deb && \ + wget -q -O /tmp/lrose.deb https://github.com/NCAR/lrose-core/releases/download/lrose-core-20220222/lrose-core-20220222.ubuntu_18.04.amd64.deb && \ apt-get -y install /tmp/lrose.deb && \ apt-get clean && \ rm -rf /tmp/lrose.deb From 4792d6a9d051b2e0e4e9b9c38d5d4a9d9926dd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 19 Feb 2024 13:36:14 +0100 Subject: [PATCH 4/6] MNT: use bionic base image and lrose-core for 18.04 --- .github/workflows/build-book.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-book.yaml b/.github/workflows/build-book.yaml index 345c616d..13d73924 100644 --- a/.github/workflows/build-book.yaml +++ b/.github/workflows/build-book.yaml @@ -41,7 +41,7 @@ jobs: DOCKER_REGISTRY: "ghcr.io" PUBLIC_REGISTRY_CHECK: true APPENDIX_FILE: "binder/appendix.txt" - REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=docker.io/library/buildpack-deps:bionic + REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=buildpack-deps:bionic build-book: runs-on: ubuntu-latest From 8572146d677404142faadb5e93af10c8c22960af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 19 Feb 2024 14:27:35 +0100 Subject: [PATCH 5/6] MNT: use bionic base image and lrose-core for 18.04 --- .github/workflows/build-book.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-book.yaml b/.github/workflows/build-book.yaml index 13d73924..a309591b 100644 --- a/.github/workflows/build-book.yaml +++ b/.github/workflows/build-book.yaml @@ -41,7 +41,8 @@ jobs: DOCKER_REGISTRY: "ghcr.io" PUBLIC_REGISTRY_CHECK: true APPENDIX_FILE: "binder/appendix.txt" - REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=buildpack-deps:bionic + REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=docker.io/library/buildpack-deps:bionic + FORCE_REPO2DOCKER_VERSION: "2023.6.0" build-book: runs-on: ubuntu-latest From 66b6c097c63c8e936039a28831b0265bc52786a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Tue, 20 Feb 2024 09:42:21 +0100 Subject: [PATCH 6/6] MNT: use bionic base image and lrose-core for 18.04 --- .github/workflows/build-book.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-book.yaml b/.github/workflows/build-book.yaml index a309591b..e2a67e44 100644 --- a/.github/workflows/build-book.yaml +++ b/.github/workflows/build-book.yaml @@ -41,7 +41,7 @@ jobs: DOCKER_REGISTRY: "ghcr.io" PUBLIC_REGISTRY_CHECK: true APPENDIX_FILE: "binder/appendix.txt" - REPO2DOCKER_EXTRA_ARGS: --Repo2Docker.base_image=docker.io/library/buildpack-deps:bionic + REPO2DOCKER_EXTRA_ARGS: "--Repo2Docker.base_image=docker.io/library/buildpack-deps:bionic" FORCE_REPO2DOCKER_VERSION: "2023.6.0" build-book: