forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows.yml
54 lines (51 loc) · 1.64 KB
/
windows.yml
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
parameters:
name: ''
vmImage: ''
matrix: []
dependsOn: []
condition: ne(variables['Build.Reason'], 'Schedule')
jobs:
- job: ${{ parameters.name }}
dependsOn: ${{ parameters.dependsOn }}
condition: ${{ parameters.condition }}
pool:
vmImage: ${{ parameters.vmImage }}
variables:
VIRTUALENV: 'testvenv'
JUNITXML: 'test-data.xml'
SKLEARN_SKIP_NETWORK_TESTS: '1'
PYTEST_VERSION: '5.2.1'
PYTEST_XDIST: 'true'
PYTEST_XDIST_VERSION: 'latest'
TEST_DIR: '$(Agent.WorkFolder)/tmp_folder'
SHOW_SHORT_SUMMARY: 'false'
CPU_COUNT: '2'
strategy:
matrix:
${{ insert }}: ${{ parameters.matrix }}
steps:
- bash: echo "##vso[task.prependpath]$CONDA/Scripts"
displayName: Add conda to PATH for 64 bit Python
condition: eq(variables['PYTHON_ARCH'], '64')
- task: UsePythonVersion@0
inputs:
versionSpec: '$(PYTHON_VERSION)'
addToPath: true
architecture: 'x86'
displayName: Use 32 bit System Python
condition: eq(variables['PYTHON_ARCH'], '32')
- bash: ./build_tools/azure/install_win.sh
displayName: 'Install'
- bash: ./build_tools/azure/test_script.sh
displayName: 'Test Library'
- bash: ./build_tools/azure/upload_codecov.sh
condition: and(succeeded(), eq(variables['COVERAGE'], 'true'))
displayName: 'Upload To Codecov'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- task: PublishTestResults@2
inputs:
testResultsFiles: '$(TEST_DIR)/$(JUNITXML)'
testRunTitle: ${{ format('{0}-$(Agent.JobName)', parameters.name) }}
displayName: 'Publish Test Results'
condition: succeededOrFailed()