From 1f9cbe658f4486470cca08f03367a1434a4c4972 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Mon, 22 Sep 2025 12:30:11 +0200 Subject: [PATCH 1/3] Fix Python upper bound --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9cdfaa9..b7d70df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ license = "BSD-3-Clause" urls.Source = "https://github.com/scikit-learn-contrib/sklearn-ann" urls.Documentation = "https://sklearn-ann.readthedocs.io/" dynamic = ["version", "readme"] -requires-python = "<3.13,>=3.9" # enforced by scipy +requires-python = ">=3.9" dependencies = [ "scikit-learn>=1.6.0", "scipy>=1.11.1,<2.0.0", From a3eb520d9cf79181532726914197dc0071162422 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Mon, 22 Sep 2025 12:37:15 +0200 Subject: [PATCH 2/3] update tests --- .github/workflows/publish.yml | 6 +++--- .github/workflows/pytest.yml | 37 +++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c679730..b8a00b4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,11 +11,11 @@ jobs: permissions: id-token: write # to authenticate as Trusted Publisher to pypi.org steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: python-version: "3.x" - cache: "pip" + cache: pip - run: pip install build - run: python -m build - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 89b5d4d..0aaa57f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -8,20 +8,22 @@ on: jobs: test: + strategy: + matrix: + python-version: ["3.9", "3.13"] runs-on: ubuntu-latest timeout-minutes: 60 - steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: filter: blob:none fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: - python-version: "3.12" + python-version: ${{ matrix.python-version }} cache: pip - name: Install project and dependencies @@ -30,23 +32,34 @@ jobs: - name: Run test suite run: pytest -v --color=yes - check: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: filter: blob:none fetch-depth: 0 - - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: - python-version: "3.12" - # cache: pip # TODO: cache tools - + python-version: "3.x" + cache: pip - name: Install tools run: pip install twine build - - name: Build and check run: | python -m build twine check dist/*.whl + + check: + if: always() + needs: + - build + - test + runs-on: ubuntu-latest + steps: + # https://github.com/marketplace/actions/alls-green#why + - uses: re-actors/alls-green@release/v1 + with: + allowed-failures: docs, linters + allowed-skips: non-voting-flaky-job + jobs: ${{ toJSON(needs) }} From 7f4904f99bc893aa81dfa46ae8fd677b5cfda5e3 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Mon, 22 Sep 2025 12:41:00 +0200 Subject: [PATCH 3/3] remove demo stuff --- .github/workflows/pytest.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0aaa57f..f9ff069 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -60,6 +60,4 @@ jobs: # https://github.com/marketplace/actions/alls-green#why - uses: re-actors/alls-green@release/v1 with: - allowed-failures: docs, linters - allowed-skips: non-voting-flaky-job jobs: ${{ toJSON(needs) }}