|
12 | 12 |
|
13 | 13 | jobs: |
14 | 14 | 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 }} |
53 | 21 |
|
54 | 22 | publish: |
55 | 23 | runs-on: ubuntu-latest |
|
0 commit comments