-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: 2 | ||
|
||
jobs: | ||
|
||
test: | ||
docker: | ||
- image: python:3.7 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: pip install -r requirements.txt | ||
- run: | ||
name: Lint code | ||
command: make lint | ||
- run: | ||
name: Run tests | ||
command: make test | ||
|
||
build-docs: | ||
docker: | ||
- image: python:3.7 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: pip install -r requirements.txt | ||
- run: | ||
name: Build docs | ||
command: cd doc/ && make html | ||
- persist_to_workspace: | ||
root: docs/_build | ||
paths: html | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- test | ||
- build-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ install: | |
test: | ||
python setup.py test | ||
|
||
.PHONY: lint | ||
lint: | ||
flake8 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pytest==4.2.0 | ||
pytest-cov==2.6.1 | ||
sphinx==1.8.4 | ||
flake8==3.7.7 |