-
Notifications
You must be signed in to change notification settings - Fork 12
98 lines (91 loc) · 3.2 KB
/
Copy pathintegration-tests-core.yml
File metadata and controls
98 lines (91 loc) · 3.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Core integration tests
on:
workflow_dispatch:
inputs:
tag_version:
description: 'The docker image tag for the firebolt core'
required: false
type: string
python_version:
description: 'Python version'
required: false
type: string
default: '3.10'
os_name:
description: 'The operating system'
required: false
type: string
default: 'ubuntu-latest'
workflow_call:
inputs:
tag_version:
description: 'The docker image tag for the firebolt core'
required: false
type: string
python_version:
description: 'Python version'
required: false
type: string
default: '3.10'
os_name:
description: 'Operating system'
required: false
type: string
default: 'ubuntu-latest'
sendSlackNotifications:
description: 'Send Slack notifications on failure'
required: false
type: boolean
default: false
secrets:
SLACK_BOT_TOKEN:
required: false
jobs:
run-core-integration-tests:
permissions:
contents: write # Push allure reports to gh-pages
statuses: write # Update status on PR
runs-on: ${{ inputs.os_name }}
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: 'firebolt-db/firebolt-python-sdk'
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ inputs.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: "Compose: Run integration tests HTTP"
env:
SERVICE_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
SERVICE_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
run: |
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-compose --alluredir=allure-results/
- name: "Compose: Run integration tests HTTPS"
env:
SERVICE_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
SERVICE_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
run: |
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-https --run-compose --alluredir=allure-results-https/
- name: "Kind: Run integration tests HTTP"
env:
HELM_CHART_VERSION: "0.3.0"
CORE_IMAGE_TAG: ${{ inputs.tag_version || vars.DEFAULT_CORE_IMAGE_TAG }}
run: |
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-kind --alluredir=allure-results-kind/
- name: Allure Reports
uses: firebolt-db/action-allure-report@8cdc116f65f6eca845a992e347e72b75ca8ccf5f # v2.1.1
if: always()
with:
github-token: ${{ github.token }}
pages-branch: gh-pages
mapping-json: |
{
"allure-results": "core",
"allure-results-https": "core_https",
"allure-results-kind": "core_kind"
}