Skip to content

Commit 6614295

Browse files
committed
ci: fix conda windows error
1 parent c06da08 commit 6614295

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/everything.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,11 @@ jobs:
393393
with:
394394
ref: ${{ github.event.pull_request.head.sha }}
395395
path: source
396+
# https://stackoverflow.com/questions/76309946/conda-attributeerror-module-brotli-has-no-attribute-error-after-update
397+
#- name: Conda workaround for win2022
398+
# if: ${{ matrix.os == 'win2022' }}
399+
# shell: pwsh
400+
# run: Get-Content -Path "C:\Miniconda\Lib\site-packages\urllib3\response.py" | Where-Object { $_ -notmatch ".*brotli.error.*"} | Set-Content -Path "C:\Miniconda\Lib\site-packages\urllib3\response.py"
396401
- name: Setup
397402
shell: pwsh
398403
run: gha/scripts/ci/gh-actions/windows-setup.ps1

scripts/ci/gh-actions/conda-env-win.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: adios2
22
variables:
33
CMAKE_PREFIX_PATH: "C:/Miniconda/envs/adios2/Library;$CMAKE_PREFIX_PATH"
44
dependencies:
5+
- brotlipy
56
- c-blosc2
67
- numpy>=1.19
78
- python=3.10

scripts/ci/gh-actions/windows-setup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ conda.bat config --remove channels defaults
1515
conda.bat config --system --remove channels defaults
1616
conda.bat config --show channels
1717
conda.bat config --set channel_priority strict
18-
conda.bat update --all -y
1918
conda.bat env create -f "gha\scripts\ci\gh-actions\conda-env-win.yml"
19+
conda.bat update -n adios2 --yes --quiet --all
2020
Write-Host "::endgroup::"
2121

2222
if($Env:GH_YML_MATRIX_PARALLEL -eq "msmpi")
2323
{
2424
Write-Host "::group::Installing msmpi"
25-
conda.bat install -n adios2 -c conda-forge -y "msmpi" "mpi4py"
25+
conda.bat install -n adios2 -c conda-forge --yes --quiet "msmpi" "mpi4py"
2626
Write-Host "::endgroup::"
2727
}

0 commit comments

Comments
 (0)