Skip to content

Commit

Permalink
Split examples and unit tests for faster builds. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajprad committed May 14, 2019
1 parent ec450c6 commit 6b3f6ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,13 @@ branches:

jobs:
include:
- python: 3.6
script: make test
- stage: lint
python: 3.6
script: make lint
- stage: unit
name: "unit tests"
python: 3.6
script: pytest -vs -m "not test_examples"
- name: "examples"
python: 3.6
script: pytest -vs -m test_examples
1 change: 1 addition & 0 deletions test/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


@pytest.mark.parametrize('example', EXAMPLES)
@pytest.mark.test_examples
def test_cpu(example):
print('Running:\npython examples/{}'.format(example))
example = example.split()
Expand Down

0 comments on commit 6b3f6ca

Please sign in to comment.