-
Notifications
You must be signed in to change notification settings - Fork 14
62 lines (55 loc) · 1.77 KB
/
system-test.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
55
56
57
58
59
60
61
62
name: System Test
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
inputs:
test:
type: string
workflow_call:
inputs:
test:
type: string
jobs:
test:
name: ${{ inputs.test }} (${{ matrix.config.env }}) (${{ matrix.config.use_akv && 'akv' || 'local' }}_keys)
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
config:
- env: sandbox_local
use_akv: false
threads: 1
- env: sandbox_local
use_akv: true
threads: 1
- env: az-cleanroom-aci
use_akv: false
threads: auto
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log into Azure
uses: azure/login@v2
with:
# Use a managed identity to authenticate to Azure
# Use properties such as client-id, tenant-id, and subscription-id in the secrets and vars
# The managed identity should have a federated credential with subject identiier repo:<organization>/<repo>:pull_request
# Use subject identifier repo:<organization>/<repo>:ref:refs/heads/<branch> for running manual CI's
client-id: ${{ secrets.MANAGED_ID_CLIENT_ID }}
tenant-id: ${{ secrets.MANAGED_ID_TENANT_ID }}
subscription-id: 7ca35580-fc67-469c-91a7-68b38569ca6e
- name: Install Dependencies
env:
GH_TOKEN: ${{ github.token }}
run: ./scripts/tools/install-deps.sh
- name: Run System Tests
env:
TEST_ENVIRONMENT: ccf/${{ matrix.config.env }}
USE_AKV: ${{ matrix.config.use_akv }}
run: |
pytest -sv \
test/system-test/test_${{ inputs.test }}.py \
-n ${{ matrix.config.threads }}