Skip to content

Use tox under Travis to include pep8, sdist, etc checks - #877

Merged
peterjc merged 3 commits into
biopython:masterfrom
peterjc:tox2
Jul 22, 2016
Merged

peterjc merged 3 commits into
biopython:masterfrom
peterjc:tox2

Conversation

@peterjc

@peterjc peterjc commented Jul 19, 2016

Copy link
Copy Markdown
Member

This would close #840 by including a pep8 target on TravisCI (the exact options to the pep8 tool and those for the git pre-commit hook on #493 can be refined).

It also adds TravisCI targets to check python setup.py sdist --manifest-only and python setup.py sdist --formats=gztar,zip works (as used in our build process) which is how I came to commit d90f53b which was a regression from getting python setup.py bdist_wheel to run (which would also now be tested on TravisCI).

The new build targets (pep8, sdist, and bdist_wheel) are all quite quick (1.5 mins, 1 min, 1 min) and so do not unduly add to the TravisCI load compared to our main test suite.

Note I am deliberately avoiding using tox.ini in order to allow this to co-exist with any user's own Tox configuration on their own machine (see #50). We could explicitly add that to the .gitignore file?

CC @cbrueffer @tiagoantao @msabramo @bow

@codecov-io

codecov-io commented Jul 19, 2016 •

Copy link
Copy Markdown

Current coverage is 79.99%

Merging #877 into master will increase coverage by <.01%

@@             master       #877   diff @@
==========================================
  Files           312        312          
  Lines         47496      47560    +64   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          37992      38046    +54   
- Misses         9504       9514    +10   
  Partials          0          0          

Powered by Codecov. Last update 67218b2...d90f53b

@peterjc

peterjc commented Jul 19, 2016

Copy link
Copy Markdown
Member Author

The fact that CodeCov reports no change in test coverage suggests that I didn't accidentally reduce the coverage by changing the dependencies installed on each version of Python :)

@cbrueffer

Copy link
Copy Markdown
Member

Looks great, thanks!

@peterjc

peterjc commented Jul 20, 2016

Copy link
Copy Markdown
Member Author

If there are no objections, I plan to apply this by the end of the week.

@peterjc

peterjc commented Jul 20, 2016

Copy link
Copy Markdown
Member Author

One downside as written (compared to the current .travis.yml) is this does not include the online tests, currently setup for Python 3.3 only as an allowed failure.

That leaves me slightly puzzled as to why no change in test coverage was report - perhaps the online tests had been failing?

@peterjc
peterjc force-pushed the tox2 branch 2 times, most recently from b918899 to aaf0974 Compare July 22, 2016 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce basic PEP8 style with TravisCI

3 participants