Skip to content

Commit

Permalink
Merge pull request #397 from pcattori/local-ci-docs
Browse files Browse the repository at this point in the history
Consolidate methods for building docs into noxfile
  • Loading branch information
pcattori committed Jun 27, 2020
2 parents 4603c4d + f6b6112 commit 5b8b3c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ jobs:
uses: actions/setup-python@v1.1.1
with:
python-version: 3.6
# RTD uses pip for managing dependencies, so we mirror that approach
- name: Install dependencies
run: |
python -m pip install .
python -m pip install -r docs/requirements.txt
- name: Build docs
run: TAMR_CLIENT_BETA=1 sphinx-build -b html docs docs/_build -W
- name: Install nox
run: pip install nox==2020.5.24
- name: Run sphinx-build
run: nox -s docs
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def test(session):

@nox.session(python="3.6")
def docs(session):
session.run("poetry", "install", external=True)
# RTD uses pip for managing dependencies, so we mirror that approach
session.install(".")
session.install("-r", "docs/requirements.txt")
session.run(
"sphinx-build",
"-b",
Expand Down

0 comments on commit 5b8b3c4

Please sign in to comment.