Skip to content

Commit

Permalink
set up separate validate-docs-ci make command to avoid heavy local la…
Browse files Browse the repository at this point in the history
…tex reqs
  • Loading branch information
pacrob committed Jan 24, 2024
1 parent bc1b68b commit e381738
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,20 @@ build-docs:
sphinx-apidoc -o docs/ . setup.py "*conftest*"
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(MAKE) -C docs latexpdf
$(MAKE) -C docs epub
$(MAKE) -C docs doctest

doctest:
cd docs/; sphinx-build -T -b doctest . _build/doctest
build-docs-ci:
$(MAKE) -C docs latexpdf
$(MAKE) -C docs epub

validate-docs: build-docs doctest
validate-newsfragments:
./newsfragments/validate_files.py
towncrier build --draft

validate-docs: build-docs validate-newsfragments

validate-docs-ci: build-docs build-docs-ci validate-newsfragments

docs: build-docs
open docs/_build/html/index.html

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ per-file-ignores=__init__.py:F401
[testenv]
commands=
core: pytest {posargs:tests/core/}
docs: make validate-docs
docs: make validate-docs-ci
database: pytest {posargs:tests/database}
difficulty: pytest {posargs:tests/json-fixtures/test_difficulty.py}
transactions: pytest {posargs:tests/json-fixtures/test_transactions.py}
Expand Down

0 comments on commit e381738

Please sign in to comment.