From 334fef2841a01b74d8f939d70eed61b742b18490 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Sun, 12 Apr 2026 16:47:53 +0100 Subject: [PATCH 1/2] build: add Python 3.13 to CI matrix and classifiers Add Python 3.13 to the GitHub Actions test matrix so CI runs on both 3.12 and 3.13. Add the 3.13 classifier to pyproject.toml. Part of PyAutoLabs/PyAutoConf#89. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/main.yml | 7 +++++-- pyproject.toml | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0613c730..e834a94c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.12'] + python-version: ['3.12', '3.13'] steps: - name: Checkout PyAutoConf uses: actions/checkout@v2 @@ -36,7 +36,10 @@ jobs: pip3 install setuptools pip3 install wheel pip3 install pytest coverage pytest-cov - pip install ./PyAutoConf "./PyAutoArray[optional]" + pip install ./PyAutoConf ./PyAutoArray + if [ "${{ matrix.python-version }}" = "3.12" ]; then + pip install "./PyAutoArray[optional]" + fi - name: Extract branch name shell: bash diff --git a/pyproject.toml b/pyproject.toml index 99b6e20f..9b836d0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,8 @@ classifiers = [ "Topic :: Scientific/Engineering :: Physics", "Natural Language :: English", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.12" + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13" ] keywords = ["cli"] dependencies = [ From 5044db389f6ccd05c46ad625f3ee848a0ddbeaf8 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Sun, 12 Apr 2026 16:55:55 +0100 Subject: [PATCH 2/2] fix: install numba and pynufft on Python 3.13, skip only tf-probability The previous commit skipped all [optional] deps on 3.13 but tests need numba and pynufft. Only tensorflow-probability lacks 3.13 wheels. Also add fail-fast: false so both matrix jobs always run. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e834a94c..5d8841d4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,7 @@ jobs: unittest: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: python-version: ['3.12', '3.13'] steps: @@ -39,6 +40,8 @@ jobs: pip install ./PyAutoConf ./PyAutoArray if [ "${{ matrix.python-version }}" = "3.12" ]; then pip install "./PyAutoArray[optional]" + else + pip install numba pynufft fi - name: Extract branch name