Skip to content

MAINT: Move to GHA#1214

Merged
larsoner merged 35 commits intosphinx-gallery:masterfrom
larsoner:gha
Oct 24, 2023
Merged

MAINT: Move to GHA#1214
larsoner merged 35 commits intosphinx-gallery:masterfrom
larsoner:gha

Conversation

@larsoner
Copy link
Copy Markdown
Contributor

Long-overdue migration to GitHub Actions. Should help with maintainability and stuff like #1213 (comment)

@larsoner
Copy link
Copy Markdown
Contributor Author

Highlights:

  • Looks like Windows at least is a little bit faster using GHA, which is nice:

    Main PR
    Screenshot from 2023-10-23 12-30-04 Screenshot from 2023-10-23 14-40-45
  • There should also should be better coverage because we now test on macOS.

  • Flow seems cleaner to me, and the net -100 lines also suggests this is the case.

  • We no longer test on Python nightlies but I think it's good enough to just quickly bump once a new Python is released and NumPy is available etc. Nowadays this happens quickly on conda-forge which powers most CI runs in this PR so I think we should be good.

@lucyleeow feel free to merge if you're happy!

Copy link
Copy Markdown
Contributor

@lucyleeow lucyleeow left a comment

Choose a reason for hiding this comment

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

Thank you for doing this, I'm not well versed in CI but it seems much cleaner. Just some nits.

sphinx_version: '6'
distrib: mamba
- os: ubuntu-latest
python: '3.8'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I assume 3.8 is the min python version we support? Not essential, but is it easy to make this a variable? Makes it easier to update and maybe easier to find/more explicit what our min support python version is.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

but is it easy to make this a variable?

You mean in YAML? Not super easy. I think it's not too bad to find it here. I'll just update developers.rst to mention this alongside "latest Python" in the release instructions/reminders.

locale: C
- os: ubuntu-latest
python: '3.11'
sphinx_version: '6'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a question, why do want to test this sphinx version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Really just to try to hit all supported major Sphinx versions but I'll make it clearer

@lucyleeow
Copy link
Copy Markdown
Contributor

We no longer test on Python nightlies but I think it's good enough to just quickly bump once a new Python is released and NumPy is available etc. Nowadays this happens quickly on conda-forge which powers most CI runs in this PR so I think we should be good.

Should we add a note to our release documentation to check if there is a new python release? I don't like relying on my memory to do things.

@larsoner larsoner enabled auto-merge (squash) October 24, 2023 13:53
@larsoner larsoner merged commit 49f338c into sphinx-gallery:master Oct 24, 2023
@larsoner larsoner deleted the gha branch October 24, 2023 14:43
@lucyleeow
Copy link
Copy Markdown
Contributor

Thank you!

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