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

BLD: run pytest on wheels and sdist #4913

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

yut23
Copy link
Member

@yut23 yut23 commented May 29, 2024

PR Summary

The changes to pyproject.toml are needed to allow running the tests on the installed version of the code. The --ignore paths are resolved relative to the current directory before being compared to the test files if they're not already absolute. This works fine when running from the repository root, but pytest would have to be run from site-packages/ to get the same relative file paths and it would try to run the tests of every installed package.

--rootdir . makes pytest collect the tests from the installed package instead of the parent directory of the configuration file.

PR Checklist

  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

@yut23 yut23 added tests: running tests Issues with the test setup infrastructure Related to CI, versioning, websites, organizational issues, etc build related to the build process labels May 29, 2024
@yut23 yut23 force-pushed the build/more_wheel_testing branch 2 times, most recently from c22f418 to d78e3aa Compare May 29, 2024 22:58
@yut23 yut23 force-pushed the build/more_wheel_testing branch from d78e3aa to abcea5d Compare May 29, 2024 23:05
@neutrinoceros neutrinoceros mentioned this pull request May 30, 2024
2 tasks
Copy link
Member

@neutrinoceros neutrinoceros 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 continuing this thread ! Obviously jobs are longer now: builds complete in about 45min (wall time) instead of 15, but that's a perfectly reasonable amount of time to wait for a release IMO. I'm approving now, but I'll give some time (say a week or two) for others to review.

Copy link
Contributor

@chrishavlin chrishavlin left a comment

Choose a reason for hiding this comment

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

thanks for your work on this, @yut23 !

@neutrinoceros neutrinoceros merged commit 748014d into yt-project:main Jun 7, 2024
19 checks passed
@neutrinoceros neutrinoceros added this to the 4.4.0 milestone Jun 7, 2024
@yut23 yut23 deleted the build/more_wheel_testing branch June 7, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build related to the build process infrastructure Related to CI, versioning, websites, organizational issues, etc tests: running tests Issues with the test setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants