6767 runner :
6868 - macos-12
6969 - ubuntu-22.04
70+ - windows-2022
7071 python :
7172 - " 3.8"
7273 - " 3.9"
7677 pip-cache-dir : ~/Library/Caches/pip
7778 - runner : ubuntu-22.04
7879 pip-cache-dir : ~/.cache/pip
80+ - runner : windows-2022
81+ pip-cache-dir : ~\AppData\Local\pip\Cache
7982 steps :
8083 - name : Check out repository
8184 uses : actions/checkout@v3.3.0
@@ -105,6 +108,7 @@ jobs:
105108 echo "GDAL_VERSION=$(poetry
106109 --directory=flooding/sentinel2_water_extraction show gdal | tr -d ' '
107110 | grep '^version:' | cut -d ':' -f 2)" >> $GITHUB_ENV
111+ shell : bash
108112
109113 - name : Setup Conda
110114 uses : s-weigand/setup-conda@v1.1.1
@@ -117,10 +121,24 @@ jobs:
117121 conda install --channel=conda-forge --quiet --yes gdal=${{
118122 env.GDAL_VERSION }} poetry
119123
120- - name : Install Python packages
124+ - name : Install Python packages on non-Windows runner
121125 run :
122126 poetry --directory=flooding/sentinel2_water_extraction install
123127 --only=main --no-root
128+ if : ${{ !startsWith(runner.os, 'Windows') }}
129+
130+ - name :
131+ Install Python packages on Windows runner (remove after
132+ https://github.com/python-poetry/poetry-core/pull/460 is released)
133+ uses : nick-fields/retry@v2.8.3
134+ with :
135+ timeout_minutes : 9999 # Work around https://github.com/nick-fields/retry/issues/107
136+ max_attempts : 6
137+ command :
138+ poetry --directory=flooding/sentinel2_water_extraction install
139+ --only=main --no-root
140+ shell : bash
141+ if : ${{ startsWith(runner.os, 'Windows') }}
124142
125143 - name : Run test
126144 run :
0 commit comments