Skip to content

Commit a38b205

Browse files
authored
Fix Python upper bound (#110)
1 parent 108a8f4 commit a38b205

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
permissions:
1212
id-token: write # to authenticate as Trusted Publisher to pypi.org
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-python@v4
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-python@v6
1616
with:
1717
python-version: "3.x"
18-
cache: "pip"
18+
cache: pip
1919
- run: pip install build
2020
- run: python -m build
2121
- uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/pytest.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ on:
88

99
jobs:
1010
test:
11+
strategy:
12+
matrix:
13+
python-version: ["3.9", "3.13"]
1114
runs-on: ubuntu-latest
1215
timeout-minutes: 60
13-
1416
steps:
1517
- name: Checkout
16-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1719
with:
1820
filter: blob:none
1921
fetch-depth: 0
2022

2123
- name: Setup Python
22-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@v6
2325
with:
24-
python-version: "3.12"
26+
python-version: ${{ matrix.python-version }}
2527
cache: pip
2628

2729
- name: Install project and dependencies
@@ -30,23 +32,32 @@ jobs:
3032
- name: Run test suite
3133
run: pytest -v --color=yes
3234

33-
check:
35+
build:
3436
runs-on: ubuntu-latest
3537
steps:
36-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
3739
with:
3840
filter: blob:none
3941
fetch-depth: 0
40-
41-
- uses: actions/setup-python@v5
42+
- uses: actions/setup-python@v6
4243
with:
43-
python-version: "3.12"
44-
# cache: pip # TODO: cache tools
45-
44+
python-version: "3.x"
45+
cache: pip
4646
- name: Install tools
4747
run: pip install twine build
48-
4948
- name: Build and check
5049
run: |
5150
python -m build
5251
twine check dist/*.whl
52+
53+
check:
54+
if: always()
55+
needs:
56+
- build
57+
- test
58+
runs-on: ubuntu-latest
59+
steps:
60+
# https://github.com/marketplace/actions/alls-green#why
61+
- uses: re-actors/alls-green@release/v1
62+
with:
63+
jobs: ${{ toJSON(needs) }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "BSD-3-Clause"
99
urls.Source = "https://github.com/scikit-learn-contrib/sklearn-ann"
1010
urls.Documentation = "https://sklearn-ann.readthedocs.io/"
1111
dynamic = ["version", "readme"]
12-
requires-python = "<3.13,>=3.9" # enforced by scipy
12+
requires-python = ">=3.9"
1313
dependencies = [
1414
"scikit-learn>=1.6.0",
1515
"scipy>=1.11.1,<2.0.0",

0 commit comments

Comments
 (0)