Skip to content

Instantly share code, notes, and snippets.

@shaypal5
Last active July 15, 2019 06:16
Show Gist options
  • Save shaypal5/7ffa03187ac73c52afdf4c49367084f3 to your computer and use it in GitHub Desktop.
Save shaypal5/7ffa03187ac73c52afdf4c49367084f3 to your computer and use it in GitHub Desktop.
Simple Python package testing on Travis CI
language: python
python:
- 2.7
- 3.5
- 3.6
before_install:
- python --version
- pip install -U pip
- pip install -U pytest
- pip install codecov
install:
- pip install ".[test]" . # install package + test dependencies
script: pytest # run tests
after_success:
- codecov # submit coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment