Merge pull request #38 from dave-shawley/rtd-build

Move readthedocs configuration into the repository.
This commit is contained in:
dave-shawley 2021-09-17 08:12:57 -04:00 committed by GitHub
commit d5094e00f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 8 deletions

View file

@ -23,6 +23,7 @@ jobs:
- name: Flake8
run: |
flake8 sprockets tests.py
test:
runs-on: ubuntu-latest
strategy:
@ -53,3 +54,19 @@ jobs:
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Read the Docs compatible python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install '.[docs]'
python -m pip install .
- name: Build documentation
run: |
./setup.py build_sphinx

10
.readthedocs.yaml Normal file
View file

@ -0,0 +1,10 @@
version: 2
python:
version: "3.7"
install:
- method: pip
path: .
extra_requirements:
- docs
sphinx:
configuration: docs/conf.py

View file

@ -68,11 +68,3 @@ source = sprockets
[flake8]
exclude = build,env,.eggs
[nosetests]
cover-branches = 1
cover-erase = 1
cover-package = sprockets.mixins.mediatype
logging-level=DEBUG
verbosity=2
with-coverage=1