Skip to content

Deploy docs via GitHub Actions CI#3053

Merged
lilyminium merged 5 commits intoMDAnalysis:developfrom
lilyminium:gh-actions-docs
Dec 6, 2020
Merged

Deploy docs via GitHub Actions CI#3053
lilyminium merged 5 commits intoMDAnalysis:developfrom
lilyminium:gh-actions-docs

Conversation

@lilyminium
Copy link
Member

Fixes #3046

Changes made in this Pull Request:

Commits referencing my site / repo were to test the deployment of docs, as built here.

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@lilyminium lilyminium mentioned this pull request Dec 3, 2020
4 tasks

- name: deploy_docs
if: github.event_name != 'pull_request'
env:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved deployment to within this file because it saved a lot of variable checking and possibly insecure token passing

@codecov
Copy link

codecov bot commented Dec 3, 2020

Codecov Report

Merging #3053 (d43c177) into develop (cf75dd6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #3053   +/-   ##
========================================
  Coverage    93.09%   93.09%           
========================================
  Files          186      186           
  Lines        24665    24665           
  Branches      3196     3196           
========================================
  Hits         22961    22961           
  Misses        1656     1656           
  Partials        48       48           

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 cf75dd6...d43c177. Read the comment docs.

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

Minor comments inline.


run: |
# place the deploy call here
echo "Oh, maple syrup roast parsnips [Richard Gowers]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost a shame to loose this citation ;-)

BRANCH="${GITHUB_REF#refs/heads/}"

# the below turns off blocking as it causes large writes to stdout to fail
# (see https://github.com/travis-ci/travis-ci/issues/4704)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment. Btw, I think what we're doing here we enabled blocking mode again, in case it was switched to non-blocking, at least that's how I read travis-ci/travis-ci#4704 (comment) and flags&~os.O_NONBLOCK.

Was this someone we only needed for Travis or is this a general problem, i.e., does gh-actions also have something weird running that switches to non-blocking mode?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P.S.: Even if we don't strictly need it here anymore, I would only ever comment the line and not delete it, just in case we need it ever again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out @orbeckst; you're right, gh-actions did not have this problem the 2 times I ran the deployment (where Travis was previously failing every time). I've commented it out and left a note.

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

@lilyminium lilyminium merged commit b8067f5 into MDAnalysis:develop Dec 6, 2020
lilyminium added a commit to MDAnalysis/UserGuide that referenced this pull request Dec 6, 2020
lilyminium added a commit to MDAnalysis/UserGuide that referenced this pull request Dec 6, 2020
lilyminium added a commit to MDAnalysis/UserGuide that referenced this pull request Dec 6, 2020
lilyminium added a commit to lilyminium/mdanalysis that referenced this pull request Dec 7, 2020
Fixes MDAnalysis#3046. Deploys docs in gh-ci.yaml script and removes Travis
lilyminium added a commit to lilyminium/mdanalysis that referenced this pull request Dec 9, 2020
Fixes MDAnalysis#3046. Deploys docs in gh-ci.yaml script and removes Travis
lilyminium added a commit to lilyminium/mdanalysis that referenced this pull request Dec 14, 2020
Fixes MDAnalysis#3046. Deploys docs in gh-ci.yaml script and removes Travis
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.

Deploy docs via GH actions

4 participants