From 896a9dd81488abfff689563c7821959df4d402c8 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 15 Jul 2026 06:33:55 +0100 Subject: [PATCH 1/2] MAINT: Add flag for random number seeding --- .github/workflows/build-wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index aadcf8f..be64e9e 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -86,7 +86,7 @@ jobs: CIBW_BEFORE_BUILD: 'git submodule foreach git checkout ${{ env.BUILD_COMMIT }}' CIBW_PLATFORM: pyodide CIBW_BUILD: "cp313-*" - CIBW_TEST_COMMAND: python -c "import statsmodels; statsmodels.test(['-sra', '--skip-examples', '--skip-slow'], exit=True)" + CIBW_TEST_COMMAND: python -c "import statsmodels; statsmodels.test(['-sra', '--skip-examples', '--skip-slow', '--randomly-dont-reset-seed'], exit=True)" CIBW_TEST_REQUIRES: pytest pytest-cov pytest-run-parallel matplotlib - name: Setup Upload Variables From 13fff88c9845cba03ecfce2ab320da8eac45e8a8 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Wed, 15 Jul 2026 07:39:13 +0100 Subject: [PATCH 2/2] MAINT: Add flag for random number seeding for other tests --- .github/workflows/build-wheels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index be64e9e..9e84a54 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -41,7 +41,7 @@ jobs: # Skip musl for 3.8 and 3.9 since no upstream wheels CIBW_SKIP: "pp* *-win32 *musllinux_aarch64*" CIBW_TEST_REQUIRES: pytest pytest-xdist pytest-randomly threadpoolctl pytest-run-parallel - CIBW_TEST_COMMAND: python -c "import numpy; numpy.show_runtime(); import statsmodels; statsmodels.test(['-m','(not slow and not example)','-n','2'], exit=True)" + CIBW_TEST_COMMAND: python -c "import numpy; numpy.show_runtime(); import statsmodels; statsmodels.test(['-m','(not slow and not example)','-n','2','--randomly-dont-reset-seed'], exit=True)" # Avoid testing on emulated architectures and Pyodide # Skip testing for now on Windows ARM11 due to linalg segfaults upstream CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le,s390x} *pyodide* *-win_arm64" @@ -87,7 +87,7 @@ jobs: CIBW_PLATFORM: pyodide CIBW_BUILD: "cp313-*" CIBW_TEST_COMMAND: python -c "import statsmodels; statsmodels.test(['-sra', '--skip-examples', '--skip-slow', '--randomly-dont-reset-seed'], exit=True)" - CIBW_TEST_REQUIRES: pytest pytest-cov pytest-run-parallel matplotlib + CIBW_TEST_REQUIRES: pytest pytest-cov pytest-run-parallel pytest-randomly matplotlib - name: Setup Upload Variables if: ${{ always() }}