-
Notifications
You must be signed in to change notification settings - Fork 54
72 lines (67 loc) · 2.27 KB
/
Copy pathpythonpackage.yml
File metadata and controls
72 lines (67 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Python package
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: scikit-learn ${{ matrix.sklearn-version }} / Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- sklearn-version: '1.0'
sklearn-spec: 'scikit-learn>=1.0,<1.1'
python-version: '3.10'
- sklearn-version: '1.1'
sklearn-spec: 'scikit-learn>=1.1,<1.2'
python-version: '3.10'
- sklearn-version: '1.2'
sklearn-spec: 'scikit-learn>=1.2,<1.3'
python-version: '3.10'
- sklearn-version: '1.3'
sklearn-spec: 'scikit-learn>=1.3,<1.4'
python-version: '3.12'
- sklearn-version: '1.4'
sklearn-spec: 'scikit-learn>=1.4,<1.5'
python-version: '3.12'
- sklearn-version: '1.5'
sklearn-spec: 'scikit-learn>=1.5,<1.6'
python-version: '3.12'
- sklearn-version: '1.6'
sklearn-spec: 'scikit-learn>=1.6,<1.7'
python-version: '3.12'
- sklearn-version: '1.7'
sklearn-spec: 'scikit-learn>=1.7,<1.8'
python-version: '3.12'
- sklearn-version: '1.8'
sklearn-spec: 'scikit-learn>=1.8,<1.9'
python-version: '3.12'
- sklearn-version: '1.9'
sklearn-spec: 'scikit-learn>=1.9,<1.10'
python-version: '3.12'
- sklearn-version: 'latest <2.0'
sklearn-spec: 'scikit-learn<2.0'
python-version: '3.12'
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[test]" "numpy<2" "${{ matrix.sklearn-spec }}"
python -m pip check
- name: Show resolved versions
run: |
python -c "import platform, sklearn; print(f'Python {platform.python_version()} / scikit-learn {sklearn.__version__}')"
- name: Run tests
run: python -m pytest