From 9e3bebb86eab616c093568928bc00d6ffbe1356f Mon Sep 17 00:00:00 2001 From: Brian Rose Date: Tue, 17 Jun 2025 13:21:59 -0400 Subject: [PATCH 1/2] Use micromamba to install full environment --- .github/workflows/link-checker.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 7a34c58..30e3ef0 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -8,7 +8,7 @@ on: required: false default: 'cookbook-dev' type: string - environment_file: # Ignored! Just here for backwards compatibility + environment_file: description: 'Name of conda environment file' required: false default: 'environment.yml' @@ -42,14 +42,19 @@ jobs: shell: bash -l {0} steps: - uses: actions/checkout@v4 - - - name: Setup Miniforge - uses: conda-incubator/setup-miniconda@v3 + + - name: Setup environment with micromamba + uses: mamba-org/setup-micromamba@v2 with: - miniforge-version: latest + environment-file: ${{ inputs.environment_file }} + + # - name: Setup Miniforge + # uses: conda-incubator/setup-miniconda@v3 + # with: + # miniforge-version: latest - - name: Install Jupyterbook - run: conda install -c conda-forge jupyter-book "python<3.13" # see https://github.com/ProjectPythia/cookbook-actions/issues/126 + # - name: Install Jupyterbook + # run: conda install -c conda-forge jupyter-book "python<3.13" # see https://github.com/ProjectPythia/cookbook-actions/issues/126 - name: Check for config file id: check_config From b64b2cbc9ac96fc9c92bff22edaf4c8d8fd56563 Mon Sep 17 00:00:00 2001 From: Brian Rose Date: Tue, 17 Jun 2025 13:30:10 -0400 Subject: [PATCH 2/2] clean up --- .github/workflows/link-checker.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index 30e3ef0..e171012 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -42,20 +42,12 @@ jobs: shell: bash -l {0} steps: - uses: actions/checkout@v4 - + - name: Setup environment with micromamba uses: mamba-org/setup-micromamba@v2 with: environment-file: ${{ inputs.environment_file }} - # - name: Setup Miniforge - # uses: conda-incubator/setup-miniconda@v3 - # with: - # miniforge-version: latest - - # - name: Install Jupyterbook - # run: conda install -c conda-forge jupyter-book "python<3.13" # see https://github.com/ProjectPythia/cookbook-actions/issues/126 - - name: Check for config file id: check_config uses: andstor/file-existence-action@v3