Skip to content

Enable colour for doctest on GitHub Actions #123536

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

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Aug 31, 2024

In #117225 for Python 3.13, we added colour to doctest output. Let's take advantage of it and show colour in our docs CI.

For example, here's a run which has a failing doctest:

image

https://github.com/hugovk/cpython/actions/runs/10644817841/job/29509999831?pr=67

We also get coloured Sphinx output:

image

https://github.com/hugovk/cpython/actions/runs/10644817841/job/29509999681?pr=67

@AA-Turner AA-Turner merged commit 0cba289 into python:main Aug 31, 2024
40 checks passed
@miss-islington-app
Copy link

Thanks @hugovk for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 31, 2024
(cherry picked from commit 0cba289)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Aug 31, 2024

GH-123538 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 31, 2024
AA-Turner pushed a commit that referenced this pull request Aug 31, 2024
Enable colour for doctest on GitHub Actions (GH-123536)
(cherry picked from commit 0cba289)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@hugovk hugovk deleted the gha-doctest-colour branch August 31, 2024 14:45
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