-
Notifications
You must be signed in to change notification settings - Fork 113
42 lines (38 loc) · 1013 Bytes
/
python.yaml
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
name: python
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.8, 3.9, '3.10', 3.11, 3.12]
sklearn: [1.0.2, 1.1.3, 1.2.2, 1.3.2, 1.4.2, 1.5.2]
exclude:
- python: 3.8
sklearn: 1.4.2
- python: 3.8
sklearn: 1.5.2
- python: 3.11
sklearn: 1.0.2
- python: 3.12
sklearn: 1.0.2
- python: 3.12
sklearn: 1.1.3
- python: 3.12
sklearn: 1.2.2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- run: |
python -m pip install --upgrade pip
pip install pytest
pip install --only-binary :all: scikit-learn==${{ matrix.sklearn }}
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- run: |
python -m pytest