Files
pqclean/test/test_workflows.py
Tobias Nießen b6cd27edc4 Use correct python3 executable in test_workflows
Using the same `python3` executable that is executing the test file
itself to run `generate_workflows.py` allows the test to succeed even
when the first `python3` binary in the user's `$PATH` is not the same.
2025-04-07 16:00:21 +02:00

17 lines
418 B
Python

from pathlib import Path
import sys
import helpers
@helpers.skip_windows()
def test_workflows_up_to_date():
scriptdir = str(Path("..") / ".github" / "workflows")
exepath = sys.executable or "python3"
helpers.run_subprocess([exepath, "generate_workflows.py", "test"],
working_dir=scriptdir)
if __name__ == "__main__":
import pytest
import sys
pytest.main(sys.argv)