Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions updates #808

Merged
merged 3 commits into from Mar 2, 2022
Merged

Conversation

Copy link
Member

@hugovk hugovk commented Jan 28, 2022

Simplify caching

Follow on from #783 (review).

https://github.com/actions/setup-python now has pip caching built in so let's remove the whole actions/cache step here. It uses requirements.txt as the key by default.

Docs: https://github.com/actions/setup-python#caching-packages-dependencies

Enable build button

Also, add workflow_dispatch, which adds a button to the GitHub Actions UI to let you trigger builds. This is something Travis CI has built in, and is fairly new to GHA and needs enabling.

Docs: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

Add colour

Finally, GitHub Actions isn't a tty so tools such as sphinx-build that autodetect don't show the output in colour. So let's add --color to turn it on, especially useful for the link check. And let's show the docs build output too, useful for debugging failures (and now in colour!).

image

@hugovk hugovk changed the title Use actions/setup-python's caching to simplify config GitHub Actions updates Jan 28, 2022
Copy link
Member

@Mariatta Mariatta left a comment

Thanks! The colored output looks nice.

@Mariatta Mariatta merged commit d7b7287 into python:main Mar 2, 2022
2 checks passed
@hugovk hugovk deleted the use-actions/setup-python-cache branch Mar 2, 2022
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.

None yet

3 participants