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

MAINT: Unify GH Actions pytest #11644

Merged
merged 45 commits into from
Apr 25, 2023
Merged

MAINT: Unify GH Actions pytest #11644

merged 45 commits into from
Apr 25, 2023

Conversation

larsoner
Copy link
Member

Having split pytest workflows is really a relic from when we couldn't restart just the failed jobs in a run. This unifies within a single YML greatly reducing CI code dup and allowing us to only run the jobs if the style job passes.

This will take some iterations so draft for now...

@cbrnr
Copy link
Contributor

cbrnr commented Apr 23, 2023

What about the style check on Azure? Do we need it or can we remove it?

@larsoner
Copy link
Member Author

Do we need it or can we remove it?

It does a bit more than the pre-commit does. It also does the same job-dependency for Azure that's being set up in this job for GH Actions. So it's still worth keeping

@cbrnr
Copy link
Contributor

cbrnr commented Apr 23, 2023

OK! In theory, it would be nice to not run duplicate stuff. Although it doesn't make a huge difference, should we still prune at least Ruff from there and just leave the setup and additional stuff?

@larsoner
Copy link
Member Author

should we still prune at least Ruff from there and just leave the setup and additional stuff?

I'd rather not. ruff on the whole repo only takes a couple of seconds to run and when it fails we want it to fail on both the GHA style job and the Azure style job so that the tests don't bother running on either provider.

@larsoner larsoner marked this pull request as ready for review April 23, 2023 23:48
mne/conftest.py Outdated
# h5py
ignore:`product` is deprecated as of NumPy.*:DeprecationWarning
# TODO: This one we should fix with .item()s
ignore:Conversion of an array with ndim > 0 to a scalar.*:DeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

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

Still a bunch to fix @drammock, but I'll get them tomorrow. For now I'll get this in and fix our CI requirements...

@larsoner larsoner enabled auto-merge (squash) April 24, 2023 01:24
@larsoner
Copy link
Member Author

Temporarily disabling the problematic SphinxWindows step. Will look into it more later this week, but want to get things green ASAP.

@larsoner larsoner merged commit d555631 into mne-tools:main Apr 25, 2023
26 checks passed
@larsoner larsoner deleted the gha branch April 25, 2023 10:53
larsoner added a commit to larsoner/mne-python that referenced this pull request Apr 25, 2023
* upstream/main: (152 commits)
  FIX: missing channels/fiducials can be np.nan (mne-tools#11634)
  use py3.10 in precommit config (mne-tools#11648)
  MAINT: Unify GH Actions pytest (mne-tools#11644)
  MRG: Rename "Discourse" link in top navigation to "Forum" [ci skip] (mne-tools#11649)
  ENH: Add support for Harmonic Field correction (mne-tools#11536)
  Add pre-commit (mne-tools#11541)
  BUG: Fix bug with paths (mne-tools#11639)
  MAINT: Report download time and size (mne-tools#11635)
  MRG: Allow retrieval of channel names via make_1020_channel_selections() (mne-tools#11632)
  Fix index name in to_data_frame()'s docstring (mne-tools#11457)
  MAINT: Use VTK prerelease wheels in pre jobs (mne-tools#11629)
  ENH: Allow gradient compensated data in maxwell_filter (mne-tools#10554)
  make test compatible with future pandas (mne-tools#11625)
  Display SVG figures correctly in Report (mne-tools#11623)
  API: Port ieeg gui over to mne-gui-addons and add tfr gui example (mne-tools#11616)
  MAINT: Add token [ci skip] (mne-tools#11622)
  API: One cycle of backward compat (mne-tools#11621)
  MAINT: Use git rather than zipball (mne-tools#11620)
  ENH: Speed up code a bit (mne-tools#11614)
  [BUG, MRG] Don't modify info in place for transform points (mne-tools#11612)
  ...
larsoner added a commit to larsoner/mne-python that referenced this pull request Apr 25, 2023
* upstream/main: (117 commits)
  FIX: missing channels/fiducials can be np.nan (mne-tools#11634)
  use py3.10 in precommit config (mne-tools#11648)
  MAINT: Unify GH Actions pytest (mne-tools#11644)
  MRG: Rename "Discourse" link in top navigation to "Forum" [ci skip] (mne-tools#11649)
  ENH: Add support for Harmonic Field correction (mne-tools#11536)
  Add pre-commit (mne-tools#11541)
  BUG: Fix bug with paths (mne-tools#11639)
  MAINT: Report download time and size (mne-tools#11635)
  MRG: Allow retrieval of channel names via make_1020_channel_selections() (mne-tools#11632)
  Fix index name in to_data_frame()'s docstring (mne-tools#11457)
  MAINT: Use VTK prerelease wheels in pre jobs (mne-tools#11629)
  ENH: Allow gradient compensated data in maxwell_filter (mne-tools#10554)
  make test compatible with future pandas (mne-tools#11625)
  Display SVG figures correctly in Report (mne-tools#11623)
  API: Port ieeg gui over to mne-gui-addons and add tfr gui example (mne-tools#11616)
  MAINT: Add token [ci skip] (mne-tools#11622)
  API: One cycle of backward compat (mne-tools#11621)
  MAINT: Use git rather than zipball (mne-tools#11620)
  ENH: Speed up code a bit (mne-tools#11614)
  [BUG, MRG] Don't modify info in place for transform points (mne-tools#11612)
  ...
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.

None yet

3 participants