File: tests.yml

package info (click to toggle)
python-azure 20230112%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 749,544 kB
  • sloc: python: 6,815,827; javascript: 287; makefile: 195; xml: 109; sh: 105
file content (59 lines) | stat: -rw-r--r-- 2,390 bytes parent folder | download
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
55
56
57
58
59
trigger: none

parameters:
  - name: Services
    type: object
    default:
      - azure-communication-chat
      - azure-communication-email
      - azure-communication-identity
      - azure-communication-networktraversal
      - azure-communication-phonenumbers
      - azure-communication-rooms
      - azure-communication-sms
      - azure-communication-jobrouter

stages:
  - ${{ each service in parameters.Services }}:
    - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
      parameters:
        JobName: ${{ replace(service, '-', '_') }}

          # All 5 service stages run in parallel, and with no parallel limits the tests may get throttled.
        MaxParallel: 2
        ServiceDirectory: communication

        ${{ if contains(service, 'phonenumbers') }}:
          CloudConfig:
            Public:
              SubscriptionConfigurations:
                - $(sub-config-azure-cloud-test-resources)
                - $(sub-config-communication-services-cloud-test-resources-common)
                - $(sub-config-communication-services-cloud-test-resources-python)
              MatrixReplace:
                - TestSamples=.*/true
            Int:
              SubscriptionConfigurations:
                - $(sub-config-communication-int-test-resources-common)
                - $(sub-config-communication-int-test-resources-python)
              MatrixReplace:
                - COMMUNICATION_SKIP_CAPABILITIES_LIVE_TEST=false/true
          MatrixConfigs:
            - Name: PhoneNumbers_python_livetest_matrix
              Path: sdk/communication/azure-communication-phonenumbers/phonenumbers-livetest-matrix.json
              Selection: sparse
              GenerateVMJobs: true
        ${{ if not(contains(service, 'phonenumbers')) }}:
          CloudConfig:
            Public:
              SubscriptionConfigurations:
                - $(sub-config-azure-cloud-test-resources)
                - $(sub-config-communication-services-cloud-test-resources-common)
                - $(sub-config-communication-services-cloud-test-resources-python)
              MatrixReplace:
                - TestSamples=.*/true
            Int:
              SubscriptionConfigurations:
                - $(sub-config-communication-int-test-resources-common)
                - $(sub-config-communication-int-test-resources-python)
        Clouds: Public,Int