-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
1 parent
5f7ddb5
commit a8742ae
Showing
1 changed file
with
11 additions
and
3 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 |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
env: | ||
CHATTERBOT_SHOW_TRAINING_PROGRESS: '0' | ||
|
||
jobs: | ||
build: | ||
|
@@ -28,7 +30,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
python -m pip install flake8 nose | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi | ||
- name: Lint with flake8 | ||
|
@@ -37,6 +39,12 @@ jobs: | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
- name: Test documentation build | ||
run: | | ||
pytest | ||
sphinx-build -nW -b html ./docs/ /tmp/build/ | ||
- name: Run tests | ||
run: | | ||
nosetests | ||
# https://github.com/marketplace/actions/coveralls-github-action | ||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/[email protected] |