From 0aff5809a5611c5f4b1786287b46341f577c8f55 Mon Sep 17 00:00:00 2001 From: Ben Westgate Date: Thu, 24 Sep 2026 12:00:09 -0500 Subject: [PATCH] Test optimized mode in CI Run the full suite under Python optimization and re-derive the frozen correction constants in one Ubuntu/Python 3.13 matrix leg. Avoid multiplying the expensive optimized run across every platform.\n\nSecurity: CI now detects behavior that depends on runtime assertions and drift in frozen BCH parameters.\n\nValidated the constant verifier locally and parsed the workflow YAML.\n\nFixes #40 --- .github/workflows/python-package.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9f99e62..df83b08 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -28,6 +28,10 @@ jobs: - run: python -m pip install --no-build-isolation -e '.[dev]' - run: python -m pip check - run: python -m pytest -q + - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' + run: python -O -m pytest -q + - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' + run: python tools/verify_correction_constants.py - run: python -m mypy src/codex32 - run: python -m ruff check . - run: python -m ruff format --check .