Skip to content

Commit 7cd31ac

Browse files
authored
Update FormRecognizer Tests.yml to auto-narrow when running against canary (Azure#12384)
* update the tests * correct not condition * attempt conditional variable * whitespace corrections * additional clarification on comments
1 parent 0a2cfcd commit 7cd31ac

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

sdk/formrecognizer/tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,37 @@ jobs:
55
parameters:
66
BuildTargetingString: azure-ai-formrecognizer
77
ServiceDirectory: formrecognizer
8+
# This is a specific request from the formrecognizer service team
9+
# their claim is that the full matrix ends up stress-testing their service.
10+
# As such, the canary test runs should run on a reduced matrix.
11+
${{ if contains(variables['Build.DefinitionName'], 'prod') }}:
12+
Matrix:
13+
Linux_Python35:
14+
OSVmImage: 'ubuntu-18.04'
15+
PythonVersion: '3.5'
16+
MacOs_Python37:
17+
OSVmImage: 'macOS-10.15'
18+
PythonVersion: '3.7'
19+
Windows_Python27:
20+
OSVmImage: 'windows-2019'
21+
PythonVersion: '2.7'
22+
Linux_PyPy3:
23+
OSVmImage: 'ubuntu-18.04'
24+
PythonVersion: 'pypy3'
25+
Linux_Python38:
26+
OSVmImage: 'ubuntu-18.04'
27+
PythonVersion: '3.8'
28+
${{ if not(contains(variables['Build.DefinitionName'], 'prod')) }}:
29+
Matrix:
30+
Linux_Python35:
31+
OSVmImage: 'ubuntu-18.04'
32+
PythonVersion: '3.5'
33+
Windows_Python27:
34+
OSVmImage: 'windows-2019'
35+
PythonVersion: '2.7'
36+
Linux_Python38:
37+
OSVmImage: 'ubuntu-18.04'
38+
PythonVersion: '3.8'
839
EnvVars:
940
AZURE_SUBSCRIPTION_ID: $(provisioner-subscription)
1041
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)

0 commit comments

Comments
 (0)