Skip to content

Commit

Permalink
decouple docs from build
Browse files Browse the repository at this point in the history
also make installation consistent across workflows
  • Loading branch information
Kieran B. Spooner committed Mar 18, 2024
1 parent 5714915 commit 432da29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
- name: Build
run: |
python3 -m pip install .
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[docs]'
python -m pip install sphinx sphinx_rtd_theme
- name: Build docs with sphinx
run: |
cd docs; sphinx-build -b html src/ .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install unitest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install unitest
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
- name: Test with unittest
run: |
python3 -m unittest

0 comments on commit 432da29

Please sign in to comment.