Skip to content

Use Github Actions for CI in place of Travis - #3580

Merged
JoaoRodrigues merged 17 commits into
biopython:masterfrom
JoaoRodrigues:gh_actions
Jun 24, 2021
Merged

JoaoRodrigues merged 17 commits into
biopython:masterfrom
JoaoRodrigues:gh_actions

Conversation

@JoaoRodrigues

Copy link
Copy Markdown
Member

This PR drops TravisCI and Appveyor as CI providers and moves to Github Actions. GHA offer several advantages over the current setup, namely:

  • All major OSes are available for testing (Win, Linux, and MacOS).
  • Simpler configuration (less config files).
  • Free & Faster.

Roadmap:

  • Style checking using pre-commit.
  • Bonus: style checking only on files modified by PR to save time.
  • Check RST files.
  • Building steps (dist and wheel).
  • Offline tests (base dependencies).
  • Offline tests (all dependencies).
  • Testing on PyPy.
  • Coverage.
  • Building Documentation with Sphinx

Possible Wishlist:

Work in progress.

References #3340

@codecov

codecov Bot commented Jun 3, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #3580 (75f5f9c) into master (b1c2341) will increase coverage by 2.70%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3580      +/-   ##
==========================================
+ Coverage   81.92%   84.63%   +2.70%     
==========================================
  Files         293      313      +20     
  Lines       48570    52248    +3678     
==========================================
+ Hits        39791    44218    +4427     
+ Misses       8779     8030     -749     
Impacted Files Coverage Δ
Bio/_utils.py 16.00% <0.00%> (-0.67%) ⬇️
Bio/HMM/Utilities.py 11.11% <0.00%> (-0.66%) ⬇️
Bio/codonalign/chisq.py 67.24% <0.00%> (-0.62%) ⬇️
Bio/ExPASy/Prosite.py 81.03% <0.00%> (-0.47%) ⬇️
Bio/SeqUtils/__init__.py 57.67% <0.00%> (-0.31%) ⬇️
Bio/codonalign/__init__.py 77.75% <0.00%> (-0.08%) ⬇️
Bio/SeqIO/QualityIO.py 77.20% <0.00%> (-0.02%) ⬇️
Bio/Graphics/GenomeDiagram/_LinearDrawer.py 90.11% <0.00%> (ø)
Bio/Graphics/GenomeDiagram/_AbstractDrawer.py 85.88% <0.00%> (ø)
Bio/Graphics/DisplayRepresentation.py 93.84% <0.00%> (ø)
... and 97 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1c2341...75f5f9c. Read the comment docs.

@JoaoRodrigues
JoaoRodrigues marked this pull request as draft June 3, 2021 22:32
@JoaoRodrigues
JoaoRodrigues requested a review from peterjc June 3, 2021 23:40
@JoaoRodrigues

Copy link
Copy Markdown
Member Author

@peterjc

peterjc commented Jun 4, 2021

Copy link
Copy Markdown
Member

Exciting - we'd also want the automatic deployment of the Sphinx docs - see #2172 and https://github.com/biopython/biopython/blob/biopython-179/.github/deploy_docs.sh called from .travis.yml which could likely be adapted.

However, there are links on drdoctr/doctr#351 for some GHA approaches to deploying to GitHub pages (we need the more complicated setup of pushing to a second repository).

@JoaoRodrigues

Copy link
Copy Markdown
Member Author

Hi @peterjc

Was thinking about this over the weekend and maybe it's better to split the workflow in multiple sub-jobs for efficiency but also to keep things more organized.

For installing all dependencies, I thought of creating a docker container (to save time). Do you have any experience or opinions on that?

@peterjc

peterjc commented Jun 22, 2021

Copy link
Copy Markdown
Member

I have no personal experience of using GitHub actions.

Is this good enough to go live now? It looks like TravisCI has stopped working.

@JoaoRodrigues

JoaoRodrigues commented Jun 22, 2021 via email

Copy link
Copy Markdown
Member Author

@peterjc

peterjc commented Jun 22, 2021

Copy link
Copy Markdown
Member

Yes please - with Travis turning off, even "light" tests is going to help.

We can polish things like deploying the API docs later.

@JoaoRodrigues
JoaoRodrigues marked this pull request as ready for review June 24, 2021 17:15
@JoaoRodrigues
JoaoRodrigues merged commit 449e6e1 into biopython:master Jun 24, 2021
@JoaoRodrigues

Copy link
Copy Markdown
Member Author

Merging!

Just to make it clear: this runs on all 3 OSes and performs those checks I listed above. Need to work on the coverage and the offline tests.

@peterjc

peterjc commented Jul 4, 2021

Copy link
Copy Markdown
Member

Can you address the apparent false positives - e.g. disable them or mark as allowed failures?

peterjc added a commit that referenced this pull request Jul 31, 2021
We will need a GitHub Actions badge instead, see #3580
@JoaoRodrigues
JoaoRodrigues deleted the gh_actions branch August 1, 2021 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants