From de223d804ac088b2d99fdc3c224495dc04b3bb6b Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Tue, 30 Apr 2024 18:33:12 -0400 Subject: [PATCH] install an older version of conda in ASV CI job --- .github/workflows/asv_check.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/asv_check.yml b/.github/workflows/asv_check.yml index 0f6379eeb9..1e01331972 100644 --- a/.github/workflows/asv_check.yml +++ b/.github/workflows/asv_check.yml @@ -28,6 +28,18 @@ jobs: - name: Install asv run: pip install asv==0.4.2 + # asv 0.4.2 (and more recent versions as well) creates conda envs + # using the --force option, which was removed in conda 24.3. + # Since ubuntu-latest now comes with conda 24.3 pre-installed, + # using the system's conda will result in error. + # To prevent that, we install an older version. + # TODO: remove this when we eventually upgrade our asv version. + # https://github.com/airspeed-velocity/asv/issues/1396 + - name: Install Conda + uses: conda-incubator/setup-miniconda@v3 + with: + conda-version: 24.1.2 + - name: Run asv benchmarks run: | cd benchmarks