-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.14 KB
/
run-tests.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
name: Run Tests
on:
workflow_call:
inputs:
slow-tests:
type: boolean
default: false
python-version:
type: string
required: true
exasol-version:
type: string
required: true
jobs:
tests-job:
name: Run Tests (Python-${{ inputs.python-version }})
runs-on: ubuntu-latest
steps:
- name: SCM Checkout
uses: actions/checkout@v4
- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/[email protected]
with:
python-version: ${{ inputs.python-version }}
- name: Run Unit Tests
if: ${{ ! inputs.slow-tests }}
run:
poetry run nox -s unit-tests
- name: Run Integration Tests
if: ${{ inputs.slow-tests }}
env:
SAAS_HOST: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_HOST }}
SAAS_ACCOUNT_ID: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_ACCOUNT_ID }}
SAAS_PAT: ${{ secrets.INTEGRATION_TEAM_SAAS_STAGING_PAT }}
run:
poetry run nox -s integration-tests -- -- --db-version ${{ inputs.exasol-version}} --backend all