Skip to content

Commit 42cafec

Browse files
committed
ReSetup miniconda of failure
1 parent 6fccf67 commit 42cafec

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ jobs:
5555
echo "Latest tag is ${{ steps.find_latest_tag.outputs.tag }}"
5656
5757
- name: Setup miniconda
58+
id: setup_miniconda
59+
continue-on-error: true
60+
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
61+
with:
62+
miniforge-version: latest
63+
use-mamba: 'true'
64+
channels: conda-forge
65+
conda-remove-defaults: 'true'
66+
python-version: ${{ matrix.python }}
67+
activate-environment: ${{ env.TEST_ENV_NAME }}
68+
69+
- name: ReSetup miniconda
70+
if: steps.setup_miniconda.outcome == 'failure'
5871
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
5972
with:
6073
miniforge-version: latest
@@ -94,6 +107,7 @@ jobs:
94107
95108
- name: Run tests
96109
id: run_tests
110+
continue-on-error: true
97111
run: |
98112
python -m pytest -ra --pyargs ${{ env.PACKAGE_NAME }}.tests
99113
env:

0 commit comments

Comments
 (0)