-
Notifications
You must be signed in to change notification settings - Fork 113
41 lines (37 loc) · 989 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
name: python
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.7, 3.8, 3.9, '3.10']
sklearn: [0.22.2, 0.23.2, 0.24.2, 1.0.2]
exclude:
- python: 3.9
sklearn: 0.22.2
- python: 3.9
sklearn: 0.23.2
- python: '3.10'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- run: |
python -m pip install --upgrade pip
pip install nose
pip install scikit-learn==${{ matrix.sklearn }}
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- run: |
nosetests