From fcadb5adf5e62d35c5b0f77771cb641672bdef2b Mon Sep 17 00:00:00 2001 From: Qin Yu Date: Wed, 22 Jan 2025 14:16:11 +0100 Subject: [PATCH] fix(ci): fix #379 `anaconda_telemetry` error in CI (#382) * fix(ci): pin `conda-build` < 25.x.x (This commit doesn't work) To avoid `AttributeError("'PluginConfig' object has no attribute 'anaconda_telemetry'")` * fix(ci): try to fix `anaconda_telemetry` error (This works) * fix(ci): unpin `conda-build<25` --- .github/workflows/build-and-publish-docs.yml | 5 +++++ .github/workflows/build-and-test-package.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build-and-publish-docs.yml b/.github/workflows/build-and-publish-docs.yml index d4a33122..7d0a3212 100644 --- a/.github/workflows/build-and-publish-docs.yml +++ b/.github/workflows/build-and-publish-docs.yml @@ -59,6 +59,11 @@ jobs: shell: bash -l {0} run: conda info --envs + # Disable `anaconda_telemetry` to avoid errors (issue 379) + - name: Configure Conda + run: | + echo "anaconda_telemetry: false" > ~/.condarc + # Build the PlantSeg Conda package (for screenshots in documentation) - name: Build PlantSeg Package shell: bash -l {0} diff --git a/.github/workflows/build-and-test-package.yml b/.github/workflows/build-and-test-package.yml index 43a0bd59..90de175c 100644 --- a/.github/workflows/build-and-test-package.yml +++ b/.github/workflows/build-and-test-package.yml @@ -45,6 +45,11 @@ jobs: shell: bash -l {0} run: conda info --envs + # Disable `anaconda_telemetry` to avoid errors (issue 379) + - name: Configure Conda + run: | + echo "anaconda_telemetry: false" > ~/.condarc + # Build the PlantSeg Conda package - name: Build PlantSeg Package shell: bash -l {0}