Skip to content

Deploy API documentation using CircleCI - #3787

Merged
peterjc merged 1 commit into
biopython:masterfrom
erik-whiting:automatically-publish-api-docs-3688
Nov 12, 2021
Merged

peterjc merged 1 commit into
biopython:masterfrom
erik-whiting:automatically-publish-api-docs-3688

Conversation

@erik-whiting

@erik-whiting erik-whiting commented Nov 9, 2021 •

Copy link
Copy Markdown
Contributor
  • 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.)

This work addresses some of the work listed in 3688. Specifically, it updates the doc-deployment script mostly with instructions on how to set up docs deployment in GitHub. Note, this work will not yet automate the deployment process, a maintainer will still have to configure the necessary SSH keys in CirlceCI and the Biopython project.

@codecov

codecov Bot commented Nov 9, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #3787 (51aed39) into master (f6d8d7f) will decrease coverage by 1.67%.
The diff coverage is n/a.

❗ Current head 51aed39 differs from pull request most recent head 0567f68. Consider uploading reports for the commit 0567f68 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3787      +/-   ##
==========================================
- Coverage   83.81%   82.13%   -1.68%     
==========================================
  Files         318      298      -20     
  Lines       53081    49961    -3120     
==========================================
- Hits        44488    41035    -3453     
- Misses       8593     8926     +333     
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 f6d8d7f...0567f68. Read the comment docs.

@erik-whiting
erik-whiting force-pushed the automatically-publish-api-docs-3688 branch from cc6c7c9 to ca39f43 Compare November 9, 2021 09:12
@peterjc peterjc changed the title Add .env to .gitignore for virtual environments Deploy API documentation using GitHub Actions (WIP) Nov 9, 2021
@peterjc

peterjc commented Nov 9, 2021

Copy link
Copy Markdown
Member

I've changed the title. Note you will have to agree to the licensing if we are to accept this contribution when it is ready.

@erik-whiting

erik-whiting commented Nov 9, 2021 •

Copy link
Copy Markdown
Contributor Author

I've changed the title. Note you will have to agree to the licensing if we are to accept this contribution when it is ready.

Noted, thank you. I thought this PR was on my own fork, I'm really really sorry for all the spam emails. I think I have this almost figured out; I will also clean up the commit history once it's ready to go.

Also, technically this is deploying the docs via CircleCI, not GitHub Actions

@erik-whiting

Copy link
Copy Markdown
Contributor Author

Just an update, I finally got this working in my own repositories. I will update and make instructions more clear for biopython deployment but I am stepping into class now.

@erik-whiting
erik-whiting force-pushed the automatically-publish-api-docs-3688 branch from 985fd66 to 51aed39 Compare November 10, 2021 05:16
@erik-whiting erik-whiting changed the title Deploy API documentation using GitHub Actions (WIP) Deploy API documentation using GitHub Actions Nov 10, 2021
@erik-whiting

Copy link
Copy Markdown
Contributor Author

@peterjc this is ready for a serious look. As noted in the main comment, please note that you (or some authorized maintainer with the necessary access) will have to follow the instructions I left in the script

@peterjc peterjc changed the title Deploy API documentation using GitHub Actions Deploy API documentation using CircleCI Nov 10, 2021
@peterjc

peterjc commented Nov 10, 2021

Copy link
Copy Markdown
Member

I didn't appreciate erik-whiting#1 was on your repository, but my comments there apply here. This looks very promising :)

@erik-whiting
erik-whiting force-pushed the automatically-publish-api-docs-3688 branch from 51aed39 to 0567f68 Compare November 11, 2021 03:14
@erik-whiting

erik-whiting commented Nov 11, 2021 •

Copy link
Copy Markdown
Contributor Author

@peterjc I applied the requested changes, let me know if there's anything else that pops out at you

@peterjc

peterjc commented Nov 12, 2021

Copy link
Copy Markdown
Member

I'll try to setup the keys following your notes...

@erik-whiting

Copy link
Copy Markdown
Contributor Author

Cool, let me know if I should update anything or if you need anything from me

@peterjc
peterjc merged commit 2c132e7 into biopython:master Nov 12, 2021
@peterjc

peterjc commented Nov 12, 2021

Copy link
Copy Markdown
Member

Will it work? Fingers crossed...

I had done almost all the SSH keys bits in your instructions previously (so didn't repeat them all).

@peterjc

peterjc commented Nov 12, 2021

Copy link
Copy Markdown
Member

So close, but should be easy to fix:

ERROR: The key you are authenticating with has been marked as read only.

https://app.circleci.com/pipelines/github/biopython/biopython/576/workflows/1f03113a-e29a-4a24-9705-942352a6d439/jobs/579

@peterjc

peterjc commented Nov 12, 2021

Copy link
Copy Markdown
Member

I removed all the old keys, made a new one, and now it works:

biopython/docs@168b440

Thank you 🥳

@erik-whiting

erik-whiting commented Nov 12, 2021 •

Copy link
Copy Markdown
Contributor Author

EDIT: oh it's working now, good!

this was the last problem I experienced in my local repos. it was fixed by adding a user key in it CircleCI project settings (the last paragraph of the instructions before the bash code in the deploy script).

did you do that part? I think it's a specifically-CircleCI requirement for this work.

Lucioric2000 pushed a commit to Lucioric2000/biopython that referenced this pull request Nov 14, 2021
Based on how we did this with TravisCI, but updated to work on CircleCI
JoaoRodrigues pushed a commit to cbalbin-bio/biopython that referenced this pull request Aug 7, 2022
Based on how we did this with TravisCI, but updated to work on CircleCI
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