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

Initial run of a py.test collector for the existing klippy .test format, rework CI to do more validation #503

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kageurufu
Copy link
Member

@kageurufu kageurufu commented Dec 22, 2024

This implements a compatible collector for py.test to run test/klippy/*.test files. This is effectively identical to running them using scripts/test_klippy.py which I did not yet remove.

As well, add test/test_imports.py to get actual errors from imports

Checklist

  • pr title makes sense
  • squashed to 1 commit
  • added a test case if possible
  • if new feature, added to the readme
  • ci is happy and green

@kageurufu kageurufu requested a review from a team as a code owner December 22, 2024 20:38
@kageurufu kageurufu force-pushed the pytest branch 4 times, most recently from 776f51c to 2e44887 Compare January 17, 2025 18:39
@kageurufu kageurufu changed the title Initial run of a py.test collector for the existing klippy .test format Initial run of a py.test collector for the existing klippy .test format, rework CI to do more validation Jan 17, 2025
rogerlz and others added 6 commits January 17, 2025 13:25
Gcode unknown commands and command errors are now test exceptions
`ASSERT TEST="{printer.whatever} is False"` in tests allows template
 evaluated runtime assertions

fix a couple broken tests that did not error because of the above
If there are changes that may affect the firmware, rebuild the docker image
  (Pull the existing image first to re-use the layer cache)

Klippy changes, test across all supported python versions
- Build and push the docker image on pushes to main
- Ensure scripts/*requirements*.txt are up to date
- Separate python versions into individual steps for better clarity
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