mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-11-21 19:28:38 +00:00
Merge pull request #38 from dave-shawley/rtd-build
Move readthedocs configuration into the repository.
This commit is contained in:
commit
d5094e00f5
3 changed files with 27 additions and 8 deletions
17
.github/workflows/testing.yml
vendored
17
.github/workflows/testing.yml
vendored
|
@ -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
10
.readthedocs.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: 2
|
||||
python:
|
||||
version: "3.7"
|
||||
install:
|
||||
- method: pip
|
||||
path: .
|
||||
extra_requirements:
|
||||
- docs
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue