Skip to content

CI: skip appveyor for doc only change #25383

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
Mar 6, 2023
Merged

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Mar 4, 2023

PR Summary

Consistent with recent changes for CI on other platforms (#25145, #25261), this change should mean the Appveyor CI is skipped if the only changes are under doc or in the galleries, or if [ci doc] is in the commit message. Following the guidance here:
https://www.appveyor.com/docs/how-to/filtering-commits/

I added [ci doc] to the current commit, to test it works.

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

Copy link
Contributor

@greglucas greglucas left a comment

Choose a reason for hiding this comment

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

Looks good, but oddly enough this worked while the GitHub Actions tests still ran! So the GitHub Actions version might be incorrect...

.appveyor.yml Outdated
Comment on lines 16 to 18
- 'galleries/examples/**'
- 'galleries/plot_types/**'
- 'galleries/tutorials/**'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- 'galleries/examples/**'
- 'galleries/plot_types/**'
- 'galleries/tutorials/**'
- 'galleries/**'

I think we can just skip the entire galleries directory.

@rcomer
Copy link
Member Author

rcomer commented Mar 4, 2023

the GitHub Actions tests still ran!

Yeah, I've been digging around the docs for that, as I've noticed it before. From what I can tell, head_commit is a property of a push event, but not of a pull_request event. So possibly it just can't work for PR CI?

@jklymak
Copy link
Member

jklymak commented Mar 6, 2023

@rcomer maybe self merge if you are done?

@QuLogic QuLogic merged commit 84e5f02 into matplotlib:main Mar 6, 2023
@tacaswell tacaswell added this to the v3.8.0 milestone Mar 6, 2023
@rcomer rcomer deleted the appveyor-docs branch March 10, 2023 17:46
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.

6 participants