|
93 | 93 | python -m pytest
|
94 | 94 | displayName: 'Runs Unit Tests'
|
95 | 95 |
|
96 |
| -- job: 'TestLinuxArrayApi' |
97 |
| - pool: |
98 |
| - vmImage: 'ubuntu-latest' |
99 |
| - strategy: |
100 |
| - matrix: |
101 |
| - Python310-Linux: |
102 |
| - python.version: '3.10' |
103 |
| - maxParallel: 3 |
104 |
| - |
105 |
| - steps: |
106 |
| - - task: UsePythonVersion@0 |
107 |
| - inputs: |
108 |
| - versionSpec: '$(python.version)' |
109 |
| - architecture: 'x64' |
110 |
| - - script: sudo apt-get update |
111 |
| - displayName: 'AptGet Update' |
112 |
| - - script: python -m pip install --upgrade pip setuptools wheel |
113 |
| - displayName: 'Install tools' |
114 |
| - - script: pip install -r requirements.txt |
115 |
| - displayName: 'Install Requirements' |
116 |
| - - script: pip install onnxruntime |
117 |
| - displayName: 'Install onnxruntime' |
118 |
| - - script: python setup.py install |
119 |
| - displayName: 'Install onnx_array_api' |
120 |
| - - script: | |
121 |
| - git clone https://github.com/data-apis/array-api-tests.git |
122 |
| - displayName: 'clone array-api-tests' |
123 |
| - - script: | |
124 |
| - cd array-api-tests |
125 |
| - git submodule update --init --recursive |
126 |
| - cd .. |
127 |
| - displayName: 'get submodules for array-api-tests' |
128 |
| - - script: pip install -r array-api-tests/requirements.txt |
129 |
| - displayName: 'Install Requirements dev' |
130 |
| - - script: | |
131 |
| - export ARRAY_API_TESTS_MODULE=onnx_array_api.array_api.onnx_numpy |
132 |
| - cd array-api-tests |
133 |
| - displayName: 'Set API' |
134 |
| - - script: | |
135 |
| - python -m pip freeze |
136 |
| - displayName: 'pip freeze' |
137 |
| - - script: | |
138 |
| - export ARRAY_API_TESTS_MODULE=onnx_array_api.array_api.onnx_numpy |
139 |
| - cd array-api-tests |
140 |
| - python -m pytest -x array_api_tests/test_creation_functions.py --skips-file=../_unittests/onnx-numpy-skips.txt --hypothesis-explain |
141 |
| - displayName: "numpy test_creation_functions.py" |
142 |
| - # - script: | |
143 |
| - # export ARRAY_API_TESTS_MODULE=onnx_array_api.array_api.onnx_ort |
144 |
| - # cd array-api-tests |
145 |
| - # python -m pytest -x array_api_tests/test_creation_functions.py --skips-file=../_unittests/onnx-ort-skips.txt --hypothesis-explain |
146 |
| - # displayName: "ort test_creation_functions.py" |
147 |
| - #- script: | |
148 |
| - # export ARRAY_API_TESTS_MODULE=onnx_array_api.array_api.onnx_numpy |
149 |
| - # cd array-api-tests |
150 |
| - # python -m pytest -x array_api_tests |
151 |
| - # displayName: "all tests" |
152 |
| - |
153 | 96 | - job: 'TestLinux'
|
154 | 97 | pool:
|
155 | 98 | vmImage: 'ubuntu-latest'
|
|
0 commit comments