Skip to content

Add Python syntax check to smoke test - #379

Merged
briantoby merged 2 commits into
mainfrom
copilot/add-python-syntax-check
Nov 2, 2026
Merged

briantoby merged 2 commits into
mainfrom
copilot/add-python-syntax-check

Conversation

@briantoby

Copy link
Copy Markdown
Collaborator

Adds a compileall step over GSASII to the smoke-test workflow. This checks every Python module for syntax errors under each Python version in the matrix, including the Python 3.10/3.11-incompatible f-string syntax that the existing test imports did not exercise.

@briantoby briantoby left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This looks like what I want. Needs a test

@briantoby

Copy link
Copy Markdown
Collaborator Author

This is not doing exactly what I want in that it appears to be using an older Python for every compileall step. Though I could live with this if there is no better choice. This should fail for Python 3.10 and 3.11 but not 3.12+.

@briantoby

Copy link
Copy Markdown
Collaborator Author

Looks good. Committing even though all Mac tests have not run. Will get retested after merge anyway.

@briantoby
briantoby merged commit 79be6aa into main Nov 2, 2026
9 of 24 checks passed
@briantoby
briantoby deleted the copilot/add-python-syntax-check branch November 2, 2026 15:52
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