From 854326d05a9e9949e886f1f296d102fad767ea28 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sat, 21 Nov 2026 11:44:42 +0000 Subject: [PATCH] ci: run argparse parity suite The CI runs the JSON, filesystem and tempfile.gettempdir parity suites under the Python 3.14 installed by actions/setup-python, but not the argparse parity suite. Add a step that builds argparse-parity-probe and runs tests/test_argparse_parity.py, guarded by a Python 3.14+ version assertion so the argparse differential classes cannot skip on an older interpreter. --- .github/workflows/ci.yml | 5 +++++ changelog.d/+ci-argparse-parity.misc.md | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelog.d/+ci-argparse-parity.misc.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 188285d..1f7c98a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,11 @@ jobs: fi zig build tempdir-probe python3 tests/test_gettempdir_parity.py + - name: parity with python 3.14 argparse calls + run: | + python3 -c "import sys; assert sys.version_info >= (3, 14), 'argparse parity needs Python 3.14+; found ' + sys.version.split()[0]" + zig build argparse-parity-probe + python3 tests/test_argparse_parity.py - name: no site names in the tree run: | ! git grep -nIiE 'snellius|surf\.nl|/gpfs/|/projects/0|rg\.terra|scratch-shared' -- . ':!.github/workflows/ci.yml' diff --git a/changelog.d/+ci-argparse-parity.misc.md b/changelog.d/+ci-argparse-parity.misc.md new file mode 100644 index 0000000..8064d04 --- /dev/null +++ b/changelog.d/+ci-argparse-parity.misc.md @@ -0,0 +1 @@ +The CI runs the argparse parity suite under Python 3.14 next to the JSON, filesystem and `tempfile.gettempdir` suites, guarded by a Python 3.14+ version check.