From 21da60fbf21133f90476684596c7c8075ebae359 Mon Sep 17 00:00:00 2001 From: Vicente Adolfo Bolea Sanchez Date: Tue, 27 Aug 2024 12:28:04 -0400 Subject: [PATCH] ci: do not use defaults channel --- scripts/ci/gh-actions/macos-setup.sh | 3 ++- scripts/ci/gh-actions/windows-setup.ps1 | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/ci/gh-actions/macos-setup.sh b/scripts/ci/gh-actions/macos-setup.sh index 24ca05d623..a415b49386 100755 --- a/scripts/ci/gh-actions/macos-setup.sh +++ b/scripts/ci/gh-actions/macos-setup.sh @@ -42,9 +42,10 @@ source "/Users/runner/miniconda3/bin/activate" # Canonical installation of Miniconda conda init --all -conda update --all -y +conda config --remove channels defaults conda config --add channels conda-forge conda config --set channel_priority strict +conda update --all -y conda env create --verbose -f "gha/scripts/ci/gh-actions/conda-env-macos.yml" diff --git a/scripts/ci/gh-actions/windows-setup.ps1 b/scripts/ci/gh-actions/windows-setup.ps1 index a483dfabe4..cd669cdd30 100644 --- a/scripts/ci/gh-actions/windows-setup.ps1 +++ b/scripts/ci/gh-actions/windows-setup.ps1 @@ -7,6 +7,10 @@ conda.bat init bash Write-Host "::endgroup::" Write-Host "::group::Installing common deps" +conda.bat config --remove channels defaults +conda.bat config --add channels conda-forge +conda.bat config --set channel_priority strict +conda.bat update --all -y conda.bat env create -f "gha\scripts\ci\gh-actions\conda-env-win.yml" Write-Host "::endgroup::"