Run Python unit tests in CI#2753
Draft
fabrizio2210 wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Blocked by
Do not merge this pull request while #2752 is open.
This pull request is intentionally a draft. Once #2752 has an accepted and validated backward-compatible rollout approach, this branch should be updated to use it before being marked ready for review.
Summary
test-pythonMakefile target from Run Slurm script unit tests in CI #2744test-pythonGitHub Actions jobci-successdependency setmainWhy
This recreates #2744 after its revert in #2750 so Python unit tests can again run consistently in CI. The rollout must first address #2752: workflows triggered by
pull_request_targetneed a backward-compatible way to run against existing pull-request heads and maintained release branches that may not contain newly introduced repository tooling.The test runner discovers
*_test.pyandtest_*.pyfiles throughout the repository while pruning Git metadata, virtual environments, and Python cache directories. Each discovered test file runs in its own directory to preserve its local import behavior.Validation
env PYTHONDONTWRITEBYTECODE=1 make test-python: 108 tests passed (104 worker tests and 4 Slurm-script tests).github/workflows/one_job.ymlwith PyYAMLgit diff --check