Skip to content

Commit 6b9839d

Browse files
committed
ReSetup miniconda on failure in building docs
1 parent fa3f8ea commit 6b9839d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
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

0 commit comments

Comments
 (0)