-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.18 KB
/
test-cloud-api.yml
File metadata and controls
44 lines (36 loc) · 1.18 KB
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
name: Test Cloud API
on:
# Run once a day
schedule:
- cron: '0 0 * * *'
# Allow manual runs from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cloud-tests:
name: Cloud API (User ${{ matrix.user }}, ${{ matrix.environment }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
user: [1, 2]
environment: [prod, dev]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install with ndi_install.py
run: |
python -m pip install --upgrade pip
python ndi_install.py --dev --no-validate --verbose
- name: Run cloud API tests
env:
NDI_CLOUD_USERNAME: ${{ matrix.user == 1 && secrets.TEST_USER_1_USERNAME || secrets.TEST_USER_2_USERNAME }}
NDI_CLOUD_PASSWORD: ${{ matrix.user == 1 && secrets.TEST_USER_1_PASSWORD || secrets.TEST_USER_2_PASSWORD }}
CLOUD_API_ENVIRONMENT: ${{ matrix.environment }}
run: |
pytest tests/test_cloud_live.py -v --tb=short