|
11 | 11 | description: 'Trigger a major release (optional). Leave empty for regular release.' |
12 | 12 |
|
13 | 13 | jobs: |
14 | | -# integration-tests: |
15 | | -# runs-on: ubuntu-latest |
16 | | -# steps: |
17 | | -# - name: Check out code |
18 | | -# uses: actions/checkout@v2 |
| 14 | + integration-tests: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: Check out code |
| 18 | + uses: actions/checkout@v2 |
19 | 19 |
|
20 | | -# - name: Set up Python 3.7 |
21 | | -# uses: actions/setup-python@v2 |
22 | | -# with: |
23 | | -# python-version: 3.7 |
| 20 | + - name: Set up Python 3.7 |
| 21 | + uses: actions/setup-python@v2 |
| 22 | + with: |
| 23 | + python-version: 3.7 |
24 | 24 |
|
25 | | -# - name: Install dependencies |
26 | | -# run: | |
27 | | -# python -m pip install --upgrade pip |
28 | | -# pip install ".[dev]" |
| 25 | + - name: Install dependencies |
| 26 | + run: | |
| 27 | + python -m pip install --upgrade pip |
| 28 | + pip install ".[dev]" |
29 | 29 |
|
30 | | -# - name: Setup database and engine |
31 | | -# id: setup |
32 | | -# uses: firebolt-db/integration-testing-setup@master |
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" |
| 30 | + - name: Setup database and engine |
| 31 | + id: setup |
| 32 | + uses: firebolt-db/integration-testing-setup@master |
| 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 | 38 |
|
39 | | -# - name: Run integration tests |
40 | | -# env: |
41 | | -# USER_NAME: ${{ secrets.FIREBOLT_USERNAME }} |
42 | | -# PASSWORD: ${{ secrets.FIREBOLT_PASSWORD }} |
43 | | -# DATABASE_NAME: ${{ steps.setup.outputs.database_name }} |
44 | | -# ENGINE_NAME: ${{ steps.setup.outputs.engine_name }} |
45 | | -# ENGINE_URL: ${{ steps.setup.outputs.engine_url }} |
46 | | -# STOPPED_ENGINE_NAME: ${{ steps.setup.outputs.stopped_engine_name }} |
47 | | -# STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }} |
48 | | -# FIREBOLT_BASE_URL: "api.dev.firebolt.io" |
49 | | -# run: | |
50 | | -# pytest -o log_cli=true -o log_cli_level=INFO tests/integration |
| 39 | + - name: Run integration tests |
| 40 | + env: |
| 41 | + USER_NAME: ${{ secrets.FIREBOLT_USERNAME }} |
| 42 | + PASSWORD: ${{ secrets.FIREBOLT_PASSWORD }} |
| 43 | + DATABASE_NAME: ${{ steps.setup.outputs.database_name }} |
| 44 | + ENGINE_NAME: ${{ steps.setup.outputs.engine_name }} |
| 45 | + ENGINE_URL: ${{ steps.setup.outputs.engine_url }} |
| 46 | + STOPPED_ENGINE_NAME: ${{ steps.setup.outputs.stopped_engine_name }} |
| 47 | + STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }} |
| 48 | + FIREBOLT_BASE_URL: "api.dev.firebolt.io" |
| 49 | + run: | |
| 50 | + pytest -o log_cli=true -o log_cli_level=INFO tests/integration |
51 | 51 |
|
52 | 52 | publish: |
53 | 53 | runs-on: ubuntu-latest |
54 | 54 | permissions: |
55 | 55 | contents: write |
56 | | -# needs: integration-tests |
| 56 | + needs: integration-tests |
57 | 57 | steps: |
58 | 58 | - name: Check out code |
59 | 59 | uses: actions/checkout@v2 |
|
0 commit comments