Skip to content

Commit d7847de

Browse files
ci: call integration tests from release (#89)
1 parent 5ee1016 commit d7847de

File tree

1 file changed

+6
-38
lines changed

1 file changed

+6
-38
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,12 @@ on:
1212

1313
jobs:
1414
integration-tests:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Check out code
18-
uses: actions/checkout@v2
19-
20-
- name: Set up Python 3.7
21-
uses: actions/setup-python@v2
22-
with:
23-
python-version: 3.7
24-
25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install ".[dev]"
29-
30-
- name: Setup database and engine
31-
id: setup
32-
uses: firebolt-db/integration-testing-setup@v1
33-
with:
34-
firebolt-username: ${{ secrets.FIREBOLT_USERNAME }}
35-
firebolt-password: ${{ secrets.FIREBOLT_PASSWORD }}
36-
api-endpoint: "api.dev.firebolt.io"
37-
region: "us-east-1"
38-
39-
- name: Run integration tests
40-
env:
41-
USER_NAME: ${{ secrets.FIREBOLT_USERNAME }}
42-
PASSWORD: ${{ secrets.FIREBOLT_PASSWORD }}
43-
SERVICE_ID: ${{ secrets.SERVICE_ID }}
44-
SERVICE_SECRET: ${{ secrets.SERVICE_SECRET }}
45-
DATABASE_NAME: ${{ steps.setup.outputs.database_name }}
46-
ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
47-
ENGINE_URL: ${{ steps.setup.outputs.engine_url }}
48-
STOPPED_ENGINE_NAME: ${{ steps.setup.outputs.stopped_engine_name }}
49-
STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }}
50-
FIREBOLT_BASE_URL: "api.dev.firebolt.io"
51-
run: |
52-
pytest -o log_cli=true -o log_cli_level=INFO tests/integration
15+
uses: ./.github/workflows/python-integration-tests.yml
16+
secrets:
17+
FIREBOLT_CLIENT_ID_STG_NEW_IDN: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
18+
FIREBOLT_CLIENT_SECRET_STG_NEW_IDN: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
19+
FIREBOLT_CLIENT_ID_NEW_IDN: ${{ secrets.FIREBOLT_CLIENT_ID_NEW_IDN }}
20+
FIREBOLT_CLIENT_SECRET_NEW_IDN: ${{ secrets.FIREBOLT_CLIENT_SECRET_NEW_IDN }}
5321

5422
publish:
5523
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)