mirror of
https://github.com/luxfi/pqclean.git
synced 2026-10-30 15:21:55 +00:00
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.
17 lines
418 B
Python
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)
|