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

Fix test running (again) #13

Merged
merged 7 commits into from
Jan 7, 2025
Merged

Fix test running (again) #13

merged 7 commits into from
Jan 7, 2025

Conversation

BradyAJohnston
Copy link
Collaborator

@BradyAJohnston BradyAJohnston commented Jan 7, 2025

Tests were continuing to be problematic but still reporting success.

The blender was that running blender -b -P tests/python.py -- pytest or something similar, didn't get access to the environment that is available when Blender is properly initialised, so bpy was not available. They would still report successful though.

This adds the tests/run.py which explicitly invokes pytest from within the python environment inside of Blender, so that bpy is available, and also ensures that the proper exit code is raised if the tests fail.

Also updates to latest setup-blender to tests against patch numbers (blender 4.2.5, daily alpha build).

@BradyAJohnston BradyAJohnston marked this pull request as ready for review January 7, 2025 08:08
@BradyAJohnston
Copy link
Collaborator Author

BradyAJohnston commented Jan 7, 2025

Tests now properly install, initialise and report success.

@BradyAJohnston BradyAJohnston merged commit 864bef6 into main Jan 7, 2025
12 checks passed
@BradyAJohnston BradyAJohnston deleted the fix-tests branch January 7, 2025 08:29
@BradyAJohnston
Copy link
Collaborator Author

Doesn't effect any of the actual add-on, just test infrastructure.

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.

1 participant