Skip to content

Commit 9d445ba

Browse files
authored
Resolve issues in public CI (part #2) (#2257)
The PR proposes to add fixes/improvements into the public CI: - trigger resetup miniconda step on failure in building docs and coverage workflows - trigger resetup miniconda & reinstall dpnp steps in case of failure within `test_linux` job of conda package workflow Note, the PR continues work initiated in #2254 and indented to make public CI more stable.
1 parent 3d02b6b commit 9d445ba

File tree

3 files changed

+51
-9
lines changed

3 files changed

+51
-9
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ jobs:
8989
run: |
9090
sudo apt-get install enchant-2
9191
92-
# https://github.com/marketplace/actions/checkout
9392
- name: Install nvidia-cuda support drivers
9493
run: |
9594
sudo add-apt-repository ppa:graphics-drivers/ppa
@@ -102,8 +101,20 @@ jobs:
102101
with:
103102
fetch-depth: 0
104103

105-
# https://github.com/marketplace/actions/setup-miniconda
106104
- name: Setup miniconda
105+
id: setup_miniconda
106+
continue-on-error: true
107+
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
108+
with:
109+
miniforge-version: latest
110+
use-mamba: 'true'
111+
channels: conda-forge
112+
conda-remove-defaults: 'true'
113+
python-version: ${{ env.python-ver }}
114+
activate-environment: 'docs'
115+
116+
- name: ReSetup miniconda
117+
if: steps.setup_miniconda.outcome == 'failure'
107118
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
108119
with:
109120
miniforge-version: latest

.github/workflows/conda-package.yml

Lines changed: 25 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/'
@@ -147,6 +145,19 @@ jobs:
147145
tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }}
148146
149147
- name: Setup miniconda
148+
id: setup_miniconda
149+
continue-on-error: true
150+
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
151+
with:
152+
miniforge-version: latest
153+
use-mamba: 'true'
154+
channels: conda-forge
155+
conda-remove-defaults: 'true'
156+
python-version: ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER}}
157+
activate-environment: ${{ env.TEST_ENV_NAME }}
158+
159+
- name: ReSetup miniconda
160+
if: steps.setup_miniconda.outcome == 'failure'
150161
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
151162
with:
152163
miniforge-version: latest
@@ -180,11 +191,19 @@ jobs:
180191
run: mamba remove conda-index
181192

182193
- name: Install dpnp
194+
id: install_dpnp
195+
continue-on-error: true
196+
run: |
197+
mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
198+
env:
199+
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
200+
201+
- name: ReInstall dpnp
202+
if: steps.install_dpnp.outcome == 'failure'
183203
run: |
184204
mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
185205
env:
186206
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
187-
MAMBA_NO_LOW_SPEED_LIMIT: 1
188207

189208
- name: List installed packages
190209
run: mamba list
@@ -226,12 +245,11 @@ jobs:
226245
shell: cmd /C CALL {0}
227246

228247
strategy:
248+
fail-fast: false
229249
matrix:
230250
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
231251
os: [windows-2019]
232252

233-
continue-on-error: true
234-
235253
env:
236254
channel-path: '${{ github.workspace }}\channel\'
237255
pkg-path-in-channel: '${{ github.workspace }}\channel\win-64\'

.github/workflows/generate_coverage.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ jobs:
6262
sudo apt-get install lcov
6363
6464
- name: Setup miniconda
65+
id: setup_miniconda
66+
continue-on-error: true
67+
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
68+
with:
69+
miniforge-version: latest
70+
use-mamba: 'true'
71+
channels: conda-forge
72+
conda-remove-defaults: 'true'
73+
python-version: ${{ env.python-ver }}
74+
activate-environment: 'coverage'
75+
76+
- name: ReSetup miniconda
77+
if: steps.setup_miniconda.outcome == 'failure'
6578
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
6679
with:
6780
miniforge-version: latest

0 commit comments

Comments
 (0)