Skip to content

Commit 907b619

Browse files
authored
ci: Allow calling tests from another repo (#394)
1 parent 6a83f42 commit 907b619

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/integration-tests-v2.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,28 @@ on:
77
required: true
88
FIREBOLT_CLIENT_SECRET_STG_NEW_IDN:
99
required: true
10+
inputs:
11+
engine-version:
12+
description: 'Engine version to use for integration tests'
13+
required: false
14+
type: string
15+
default: ''
16+
token:
17+
description: 'GitHub token if called from another workflow'
18+
required: false
19+
type: string
1020

1121
jobs:
1222
tests:
1323
runs-on: ubuntu-latest
1424
steps:
1525
- name: Check out code
16-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
27+
with:
28+
repository: 'firebolt-db/firebolt-python-sdk'
1729

1830
- name: Set up Python 3.8
19-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v5
2032
with:
2133
python-version: 3.8
2234

@@ -33,6 +45,7 @@ jobs:
3345
firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
3446
account: ${{ vars.FIREBOLT_ACCOUNT }}
3547
api-endpoint: "api.staging.firebolt.io"
48+
engine-version: ${{ inputs.engine-version }}
3649

3750
- name: Run integration tests
3851
env:
@@ -48,7 +61,7 @@ jobs:
4861
4962
# Need to pull the pages branch in order to fetch the previous runs
5063
- name: Get Allure history
51-
uses: actions/checkout@v2
64+
uses: actions/checkout@v4
5265
if: always()
5366
continue-on-error: true
5467
with:
@@ -59,7 +72,8 @@ jobs:
5972
uses: firebolt-db/action-allure-report@v1
6073
if: always()
6174
with:
62-
github-key: ${{ secrets.GITHUB_TOKEN }}
75+
github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }}
6376
test-type: integration
6477
allure-dir: allure-results
6578
pages-branch: gh-pages
79+
repository-name: python-sdk

0 commit comments

Comments
 (0)