Skip to content

Commit a12f7e7

Browse files
Fix azure pipeline (#85)
1 parent 4650b04 commit a12f7e7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,36 @@ jobs:
2121
SCIPY_VERSION: "1.1.0"
2222
SKLEARN_VERSION: "0.23.2"
2323
Python39:
24-
python.version: '3.8'
24+
python.version: '3.9'
25+
NUMPY_VERSION: "1.19.4"
26+
SCIPY_VERSION: "1.5.4"
2527
SKLEARN_VERSION: "nightly"
2628
variables:
2729
OMP_NUM_THREADS: '2'
28-
30+
2931
steps:
3032
- task: UsePythonVersion@0
3133
inputs:
3234
versionSpec: '$(python.version)'
3335
displayName: 'Use Python $(python.version)'
34-
36+
3537
- script: |
3638
set -xe
3739
python --version
3840
python -m pip install --upgrade pip
3941
if [[ "$SKLEARN_VERSION" == "nightly" ]]; then
4042
# This also installs latest numpy, scipy and joblib.
41-
pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn
43+
pip install --pre scikit-learn
4244
else
4345
python -m pip install numpy==$NUMPY_VERSION scipy==$SCIPY_VERSION scikit-learn==$SKLEARN_VERSION
4446
fi
4547
displayName: 'Install dependencies'
46-
48+
4749
- script: |
4850
set -xe
4951
pip install -e .
5052
displayName: 'Install scikit-learn-extra'
51-
53+
5254
- script: |
5355
set -xe
5456
python -m pip install pytest pytest-azurepipelines pytest-cov codecov
@@ -89,7 +91,7 @@ jobs:
8991
inputs:
9092
versionSpec: '$(python.version)'
9193
displayName: 'Use Python $(python.version)'
92-
94+
9395
- script: |
9496
set -xe
9597
python --version
@@ -101,12 +103,12 @@ jobs:
101103
python -m pip install numpy==$NUMPY_VERSION scipy==$SCIPY_VERSION scikit-learn==$SKLEARN_VERSION
102104
fi
103105
displayName: 'Install dependencies'
104-
106+
105107
- script: |
106108
set -xe
107109
pip install -e .
108110
displayName: 'Install scikit-learn-extra'
109-
111+
110112
- script: |
111113
set -xe
112114
python -m pip install pytest pytest-azurepipelines pytest pytest-cov codecov
@@ -143,18 +145,18 @@ jobs:
143145
- task: UsePythonVersion@0
144146
inputs:
145147
versionSpec: '$(python.version)'
146-
148+
147149
- script: |
148150
python --version
149151
python -m pip install --upgrade pip
150152
python -m pip install numpy==%NUMPY_VERSION% scipy==%SCIPY_VERSION% scikit-learn==%SKLEARN_VERSION%
151153
displayName: 'Install dependencies'
152-
154+
153155
- script: |
154156
pip wheel . -w dist\
155157
pip install --pre --no-index --find-links dist\ scikit-learn-extra
156158
displayName: 'Install scikit-learn-extra'
157-
159+
158160
- script: |
159161
cd ..
160162
python -m pip install pytest pytest-azurepipelines pytest-cov codecov

0 commit comments

Comments
 (0)