From eaa1c0a8e23db3c6ac315e40b8031a20fcd4a645 Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Tue, 23 May 2023 14:48:11 +0200 Subject: [PATCH] Move to setup-micromamba (#242) See https://github.com/mamba-org/provision-with-micromamba/releases/tag/v16. Supersedes #240 --- .github/workflows/core_tests.yml | 4 ++-- .github/workflows/docs.yml | 4 ++-- .github/workflows/python_lint.yml | 10 ++++------ .github/workflows/python_tests.yml | 6 +++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/core_tests.yml b/.github/workflows/core_tests.yml index a22a1428e..8006c46f6 100644 --- a/.github/workflows/core_tests.yml +++ b/.github/workflows/core_tests.yml @@ -30,10 +30,10 @@ jobs: steps: - uses: actions/checkout@v3 - name: Setup Micromamba - uses: mamba-org/provision-with-micromamba@v15 + uses: mamba-org/setup-micromamba@v1 with: cache-downloads: true - cache-env: true + cache-environment: true environment-file: ./environment.yml - name: Install ribasim run: pip install --editable python/ribasim diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8f651cb85..7d1d3a3b1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -45,10 +45,10 @@ jobs: ${{ runner.os }}-test- - name: Setup Micromamba - uses: mamba-org/provision-with-micromamba@v15 + uses: mamba-org/setup-micromamba@v1 with: cache-downloads: true - cache-env: true + cache-environment: true environment-file: ./environment.yml - name: Install ribasim-python diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index 5b98ccce6..31e3bff61 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - name: Setup Micromamba - uses: mamba-org/provision-with-micromamba@v15 + uses: mamba-org/setup-micromamba@v1 with: cache-downloads: true - cache-env: true + cache-environment: true environment-file: ./environment.yml - name: Run black @@ -40,9 +40,8 @@ jobs: - name: Setup Micromamba uses: mamba-org/provision-with-micromamba@v15 with: - python_version: ${{ matrix.python_version }} cache-downloads: true - cache-env: true + cache-environment: true environment-file: ./environment.yml - name: Run ruff run: | @@ -61,9 +60,8 @@ jobs: - name: Setup Micromamba uses: mamba-org/provision-with-micromamba@v15 with: - python_version: ${{ matrix.python_version }} cache-downloads: true - cache-env: true + cache-environment: true environment-file: ./environment.yml - name: Install python packages run: | diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 8843b6e74..9ea1a48df 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml @@ -33,12 +33,12 @@ jobs: - uses: actions/checkout@v3 - name: Setup Micromamba - uses: mamba-org/provision-with-micromamba@v15 + uses: mamba-org/setup-micromamba@v1 with: cache-downloads: true - cache-env: true + cache-environment: true environment-file: ./environment.yml - extra-specs: | + create-args: >- python=${{ matrix.python_version }} - name: Install ribasim