Skip to content

Commit fa3f8ea

Browse files
committed
ReInstall dpnp on failure on Linux
1 parent 3d02b6b commit fa3f8ea

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/conda-package.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
name: Build
2929

3030
strategy:
31+
fail-fast: false
3132
matrix:
3233
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
3334
os: [ubuntu-22.04, windows-2019]
@@ -42,8 +43,6 @@ jobs:
4243
run:
4344
shell: ${{ matrix.os == 'windows-2019' && 'cmd /C CALL {0}' || 'bash -el {0}' }}
4445

45-
continue-on-error: true
46-
4746
steps:
4847
- name: Cancel Previous Runs
4948
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
@@ -122,12 +121,11 @@ jobs:
122121
shell: bash -el {0}
123122

124123
strategy:
124+
fail-fast: false
125125
matrix:
126126
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
127127
os: [ubuntu-latest]
128128

129-
continue-on-error: true
130-
131129
env:
132130
channel-path: '${{ github.workspace }}/channel/'
133131
pkg-path-in-channel: '${{ github.workspace }}/channel/linux-64/'
@@ -180,11 +178,19 @@ jobs:
180178
run: mamba remove conda-index
181179

182180
- name: Install dpnp
181+
id: install_dpnp
182+
continue-on-error: true
183+
run: |
184+
mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
185+
env:
186+
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
187+
188+
- name: ReInstall dpnp
189+
if: steps.install_dpnp.outcome == 'failure'
183190
run: |
184191
mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
185192
env:
186193
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
187-
MAMBA_NO_LOW_SPEED_LIMIT: 1
188194

189195
- name: List installed packages
190196
run: mamba list
@@ -226,12 +232,11 @@ jobs:
226232
shell: cmd /C CALL {0}
227233

228234
strategy:
235+
fail-fast: false
229236
matrix:
230237
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
231238
os: [windows-2019]
232239

233-
continue-on-error: true
234-
235240
env:
236241
channel-path: '${{ github.workspace }}\channel\'
237242
pkg-path-in-channel: '${{ github.workspace }}\channel\win-64\'

0 commit comments

Comments
 (0)