|
1 | 1 | jobs:
|
2 |
| -- job: 'TestLinuxWheelNoCuda313' |
3 |
| - pool: |
4 |
| - vmImage: 'ubuntu-latest' |
5 |
| - strategy: |
6 |
| - matrix: |
7 |
| - Python311-Linux: |
8 |
| - python.version: '3.13' |
9 |
| - maxParallel: 3 |
10 |
| - |
11 |
| - steps: |
12 |
| - - task: UsePythonVersion@0 |
13 |
| - inputs: |
14 |
| - versionSpec: '$(python.version)' |
15 |
| - architecture: 'x64' |
16 |
| - - script: sudo apt-get update |
17 |
| - displayName: 'AptGet Update' |
18 |
| - - script: sudo apt-get install -y graphviz |
19 |
| - displayName: 'Install Graphviz' |
20 |
| - - script: python -m pip install --upgrade pip setuptools wheel |
21 |
| - displayName: 'Install tools' |
22 |
| - - script: pip install -r requirements.txt |
23 |
| - displayName: 'Install Requirements' |
24 |
| - - script: pip install -r requirements-dev.txt |
25 |
| - displayName: 'Install Requirements dev' |
26 |
| - - script: | |
27 |
| - ruff check . |
28 |
| - displayName: 'Ruff' |
29 |
| - - script: | |
30 |
| - black --diff . |
31 |
| - displayName: 'Black' |
32 |
| - - script: | |
33 |
| - cmake-lint _cmake/Find* --disabled-codes C0103 C0113 --line-width=88 |
34 |
| - cmake-lint _cmake/CMake* --disabled-codes C0103 C0113 --line-width=88 |
35 |
| - displayName: 'cmake-lint' |
36 |
| - - script: | |
37 |
| - rstcheck -r ./_doc ./mlinsights |
38 |
| - displayName: 'rstcheck' |
39 |
| - - script: | |
40 |
| - cython-lint . |
41 |
| - displayName: 'cython-lint' |
42 |
| - - script: | |
43 |
| - export USE_CUDA=0 |
44 |
| - python -m pip install -e . --config-settings="--use_cuda=0" -v |
45 |
| - displayName: 'pip install -e . --config-settings="--use_cuda=0" -v' |
46 |
| - - script: | |
47 |
| - python -m pytest _unittests --durations=10 |
48 |
| - displayName: 'Runs Unit Tests' |
49 |
| - - script: | |
50 |
| - # --config-settings does not work yet. |
51 |
| - # python -m pip wheel . --config-settings="--use_cuda=0" -v |
52 |
| - export USE_CUDA=0 |
53 |
| - python -m pip wheel . --config-settings="--use_cuda=0" -v |
54 |
| - displayName: 'build wheel' |
55 |
| - - script: | |
56 |
| - mkdir dist |
57 |
| - cp mlinsights*.whl dist |
58 |
| - displayName: 'copy wheel' |
59 |
| - - script: | |
60 |
| - pip install auditwheel-symbols |
61 |
| - auditwheel-symbols --manylinux 2014 dist/*.whl || exit 0 |
62 |
| - displayName: 'Audit wheel' |
63 |
| - - script: | |
64 |
| - pip install abi3audit |
65 |
| - abi3audit dist/*.whl || exit 0 |
66 |
| - displayName: 'abi3audit wheel' |
67 |
| - - task: PublishPipelineArtifact@0 |
68 |
| - inputs: |
69 |
| - artifactName: 'wheel-linux-pip-$(python.version)' |
70 |
| - targetPath: 'dist' |
71 | 2 |
|
72 | 3 | - job: 'TestLinuxWheelNoCuda'
|
73 | 4 | pool:
|
|
0 commit comments