Skip to content

CircleCI for Sphinx API docs - #3678

Merged
peterjc merged 2 commits into
biopython:masterfrom
peterjc:circle_sphinx
Aug 5, 2021
Merged

peterjc merged 2 commits into
biopython:masterfrom
peterjc:circle_sphinx

Conversation

@peterjc

@peterjc peterjc commented Jul 31, 2021

Copy link
Copy Markdown
Member
  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file, have run pre-commit locally,
    and understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
    tests and style checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

Happy to do this via GitHub Actions at a later date, but right now I can make this work on CircleCI

peterjc added 2 commits July 31, 2021 19:06
TODO: Deploy this if on master branch
(Since I failed to get this to work with CircleCI yaml)
@peterjc
peterjc requested a review from JoaoRodrigues July 31, 2021 19:09
@peterjc

peterjc commented Jul 31, 2021

Copy link
Copy Markdown
Member Author

There ought to be an elegant way in the CircleCI yaml to only run the documentation deployment on the master branch, but despite several attempts I didn't crack it. None of the examples were close enough to ours.

Also, this needs a deployment key via a "secret" environment variable $DOC_KEY which was setup on our TravisCI and is now setup ready on our CircleCI ready for this to go live. I have tested it on CircleCI with my own Biopython repository fork, which did a clean API documentation build, and got as far as complaining that the variable was missing.

@codecov

codecov Bot commented Jul 31, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #3678 (e2f50b6) into master (30eda52) will decrease coverage by 1.70%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3678      +/-   ##
==========================================
- Coverage   83.60%   81.89%   -1.71%     
==========================================
  Files         316      296      -20     
  Lines       52501    49376    -3125     
==========================================
- Hits        43894    40437    -3457     
- Misses       8607     8939     +332     
Impacted Files Coverage Δ
Bio/Phylo/CDAOIO.py 4.46% <0.00%> (-80.36%) ⬇️
Bio/phenotype/pm_fitting.py 12.28% <0.00%> (-75.44%) ⬇️
Bio/PDB/mmtf/__init__.py 28.57% <0.00%> (-61.91%) ⬇️
Bio/Graphics/__init__.py 25.00% <0.00%> (-58.34%) ⬇️
Bio/Phylo/CDAO.py 42.85% <0.00%> (-57.15%) ⬇️
Bio/Phylo/_utils.py 25.00% <0.00%> (-52.41%) ⬇️
Bio/codonalign/codonseq.py 44.16% <0.00%> (-44.31%) ⬇️
Bio/Phylo/_cdao_owl.py 89.47% <0.00%> (-10.53%) ⬇️
Bio/KEGG/KGML/KGML_pathway.py 73.58% <0.00%> (-6.67%) ⬇️
Bio/motifs/jaspar/db.py 3.04% <0.00%> (-5.33%) ⬇️
... and 27 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 30eda52...e2f50b6. Read the comment docs.

@JoaoRodrigues

Copy link
Copy Markdown
Member

Would this help keep the jobs running only on master? Another alternative is to launch things only when you have a push to master.

@peterjc

peterjc commented Aug 1, 2021

Copy link
Copy Markdown
Member Author

In principle, yes. But after four attempts to crack the syntax on top of the current YAML structure (e.g. we have no workflows), I gave up.

@peterjc
peterjc merged commit 6950507 into biopython:master Aug 5, 2021
@peterjc
peterjc deleted the circle_sphinx branch August 5, 2021 08:38
@peterjc peterjc mentioned this pull request Aug 5, 2021
2 tasks done
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.

2 participants