Skip to content

Commit 38e2e49

Browse files
committed
ReSetup miniconda of failure
1 parent 6fccf67 commit 38e2e49

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100

101101
needs: build
102102

103-
runs-on: ubuntu-latest
103+
runs-on: ${{ matrix.os }}
104104

105105
defaults:
106106
run:
@@ -109,6 +109,7 @@ jobs:
109109
strategy:
110110
matrix:
111111
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
112+
os: [ubuntu-latest]
112113

113114
continue-on-error: true
114115

@@ -203,7 +204,7 @@ jobs:
203204

204205
needs: build
205206

206-
runs-on: windows-2019
207+
runs-on: ${{ matrix.os }}
207208

208209
defaults:
209210
run:
@@ -212,6 +213,7 @@ jobs:
212213
strategy:
213214
matrix:
214215
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
216+
os: [windows-2019]
215217

216218
continue-on-error: true
217219

.github/workflows/cron-run-tests.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ jobs:
5555
echo "Latest tag is ${{ steps.find_latest_tag.outputs.tag }}"
5656
5757
- name: Setup miniconda
58+
id: setup_miniconda
59+
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
60+
with:
61+
miniforge-version: latest
62+
use-mamba: 'true'
63+
channels: conda-forge
64+
conda-remove-defaults: 'true'
65+
python-version: ${{ matrix.python }}
66+
activate-environment: ${{ env.TEST_ENV_NAME }}
67+
68+
- name: ReSetup miniconda
69+
if: steps.setup_miniconda.outcome == 'failure'
5870
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
5971
with:
6072
miniforge-version: latest

0 commit comments

Comments
 (0)