Skip to content

Commit ada9178

Browse files
Create conda env for sphinx (#47)
1 parent ea7a10f commit ada9178

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/gh-pages.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,31 @@ jobs:
1010
main:
1111
if: ${{ !(github.event.pull_request && github.event.action == 'closed') }}
1212
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
shell: bash -el {0}
1316

1417
steps:
1518
- uses: actions/checkout@v2
1619
with:
1720
fetch-depth: 0
1821

19-
- name: Add conda to system path
20-
run: echo $CONDA/bin >> $GITHUB_PATH
22+
- name: Setup conda
23+
uses: conda-incubator/setup-miniconda@v2
24+
with:
25+
auto-update-conda: true
26+
run-post: false
27+
miniforge-variant: Mambaforge
28+
miniforge-version: latest
29+
environment-file: environment.yml
30+
31+
- name: Conda info
32+
run: |
33+
conda info
34+
conda list
2135
2236
- name: Sphinx
2337
run: |
24-
conda env update -n base -f environment.yml --prune
2538
cd docs
2639
make html
2740

environment.yml

-232 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)