diff --git a/.github/workflows/benchmarks-last-release.yml b/.github/workflows/benchmarks-last-release.yml index 9bd0cc13b3d..1df14dcc50c 100644 --- a/.github/workflows/benchmarks-last-release.yml +++ b/.github/workflows/benchmarks-last-release.yml @@ -24,6 +24,7 @@ jobs: - name: Set up conda environment uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: '2.0.2-2' environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests cache-environment: true diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index bd06fbcde15..9daf042bd5e 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -27,6 +27,7 @@ jobs: - name: Set up conda environment uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: '2.0.2-2' environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests cache-environment: true diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml index 4f8c9be586f..d4a0141a673 100644 --- a/.github/workflows/ci-additional.yaml +++ b/.github/workflows/ci-additional.yaml @@ -14,6 +14,7 @@ concurrency: env: FORCE_COLOR: 3 + MICROMAMBA_VERSION: "2.0.2-2" jobs: detect-ci-trigger: @@ -57,11 +58,11 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests create-args: >- python=${{env.PYTHON_VERSION}} - conda cache-environment: true cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" @@ -70,8 +71,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Run doctests run: | @@ -105,11 +104,11 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests create-args: >- python=${{env.PYTHON_VERSION}} - conda cache-environment: true cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" - name: Install xarray @@ -117,8 +116,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Install mypy run: | @@ -159,11 +156,11 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests create-args: >- python=${{env.PYTHON_VERSION}} - conda cache-environment: true cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" - name: Install xarray @@ -171,8 +168,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Install mypy run: | @@ -218,11 +213,11 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests create-args: >- python=${{env.PYTHON_VERSION}} - conda cache-environment: true cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" - name: Install xarray @@ -230,8 +225,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Install pyright run: | @@ -277,11 +270,11 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ${{env.CONDA_ENV_FILE}} environment-name: xarray-tests create-args: >- python=${{env.PYTHON_VERSION}} - conda cache-environment: true cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" - name: Install xarray @@ -289,8 +282,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Install pyright run: | @@ -313,7 +304,8 @@ jobs: name: Minimum Version Policy runs-on: "ubuntu-latest" needs: detect-ci-trigger - if: needs.detect-ci-trigger.outputs.triggered == 'false' + # disabled until `conda` is compatible with the new `libmambapy` + if: false && needs.detect-ci-trigger.outputs.triggered == 'false' defaults: run: shell: bash -l {0} @@ -326,12 +318,13 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-name: xarray-tests create-args: >- python=3.12 pyyaml - conda python-dateutil + libmambapy - name: All-deps minimum versions policy run: | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e0f9489e325..1a08b4c5903 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,6 +14,7 @@ concurrency: env: FORCE_COLOR: 3 + micromamba_version: 2 jobs: detect-ci-trigger: @@ -110,13 +111,13 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: '2.0.2-2' environment-file: ${{ env.CONDA_ENV_FILE }} environment-name: xarray-tests cache-environment: true cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}" create-args: >- python=${{matrix.python-version}} - conda # We only want to install this on one run, because otherwise we'll have # duplicate annotations. @@ -131,8 +132,6 @@ jobs: - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Import xarray diff --git a/.github/workflows/hypothesis.yaml b/.github/workflows/hypothesis.yaml index aa58eb32ef0..b90c2f26634 100644 --- a/.github/workflows/hypothesis.yaml +++ b/.github/workflows/hypothesis.yaml @@ -63,6 +63,7 @@ jobs: - name: Setup micromamba uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: "2.0.2-2" environment-file: ci/requirements/environment.yml environment-name: xarray-tests create-args: >- @@ -76,8 +77,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py # https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml index 873e3d16157..1d2aebab930 100644 --- a/.github/workflows/upstream-dev-ci.yaml +++ b/.github/workflows/upstream-dev-ci.yaml @@ -17,6 +17,7 @@ concurrency: env: FORCE_COLOR: 3 + MICROMAMBA_VERSION: "2.0.2-2" jobs: detect-ci-trigger: @@ -63,12 +64,12 @@ jobs: - name: Set up conda environment uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ci/requirements/environment.yml environment-name: xarray-tests create-args: >- python=${{ matrix.python-version }} pytest-reportlog - conda - name: Install upstream versions run: | bash ci/install-upstream-wheels.sh @@ -77,8 +78,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Import xarray run: | @@ -122,12 +121,12 @@ jobs: - name: Set up conda environment uses: mamba-org/setup-micromamba@v2 with: + micromamba-version: ${{env.MICROMAMBA_VERSION}} environment-file: ci/requirements/environment.yml environment-name: xarray-tests create-args: >- python=${{ matrix.python-version }} pytest-reportlog - conda - name: Install upstream versions run: | bash ci/install-upstream-wheels.sh @@ -136,8 +135,6 @@ jobs: python -m pip install --no-deps -e . - name: Version info run: | - conda info -a - conda list python xarray/util/print_versions.py - name: Install mypy run: | diff --git a/ci/min_deps_check.py b/ci/min_deps_check.py index 8e09bb1eb90..4106470699e 100755 --- a/ci/min_deps_check.py +++ b/ci/min_deps_check.py @@ -11,7 +11,7 @@ from collections.abc import Iterator from datetime import datetime -import conda.api # type: ignore[import] +import libmambapy # type: ignore[import] import yaml from dateutil.relativedelta import relativedelta @@ -93,7 +93,7 @@ def metadata(entry): return (major, minor), time - raw_data = conda.api.SubdirData.query_all(pkg, channels=CHANNELS) + raw_data = libmambapy.SubdirData.query_all(pkg, channels=CHANNELS) data = sorted(metadata(entry) for entry in raw_data if entry.timestamp != 0) release_dates = {