Skip to content

Commit adb04c0

Browse files
committed
ReSetup miniconda on failure in coverage run
1 parent ab63739 commit adb04c0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.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)