Skip to content

Commit d5a18f6

Browse files
authored
Merge pull request #148 from simopt-admin/refactor_docs
switched sphinx workflow to conda environment
2 parents c626c22 + adf7067 commit d5a18f6

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/sphinx.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ jobs:
1414
fetch-depth: 0
1515
ref: ${{ github.ref }}
1616

17-
- name: Set up Python
18-
uses: actions/setup-python@v4
17+
- name: Set up Conda environment
18+
uses: conda-incubator/setup-miniconda@v2
1919
with:
20-
python-version: '3.9'
21-
22-
- name: Install dependencies
23-
run: pip install -r docs/requirements.txt
20+
activate-environment: simopt
21+
environment-file: environment.yml
22+
auto-activate-base: false
2423

2524
- name: Build documentation
26-
run: sphinx-build -b html docs/source docs/_build/html
25+
shell: bash -l {0}
26+
run: |
27+
conda activate simopt
28+
sphinx-build -b html docs/source docs/_build/html
2729
2830
- name: Commit and push changes
31+
shell: bash -l {0}
2932
run: |
33+
conda activate simopt
3034
git config --global user.name "github-actions[bot]"
3135
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3236
git add docs/_build/html

0 commit comments

Comments
 (0)