diff --git a/.github/workflows/python-integration-tests.yml b/.github/workflows/python-integration-tests.yml new file mode 100644 index 0000000..a3b1e64 --- /dev/null +++ b/.github/workflows/python-integration-tests.yml @@ -0,0 +1,43 @@ +name: Firebolt Python Integration tests + +on: + workflow_dispatch: + +jobs: + integration-tests: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ".[dev]" + + - name: Setup database and engine + id: setup + uses: firebolt-db/integration-testing-setup@master + with: + firebolt-username: ${{ secrets.FIREBOLT_USERNAME }} + firebolt-password: ${{ secrets.FIREBOLT_PASSWORD }} + api-endpoint: "api.dev.firebolt.io" + region: "us-east-1" + + - name: Run integration tests + env: + USER_NAME: ${{ secrets.FIREBOLT_USERNAME }} + PASSWORD: ${{ secrets.FIREBOLT_PASSWORD }} + DATABASE_NAME: ${{ steps.setup.outputs.database_name }} + ENGINE_NAME: ${{ steps.setup.outputs.engine_name }} + ENGINE_URL: ${{ steps.setup.outputs.engine_url }} + STOPPED_ENGINE_NAME: ${{ steps.setup.outputs.stopped_engine_name }} + STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }} + API_ENDPOINT: "api.dev.firebolt.io" + run: | + pytest -o log_cli=true -o log_cli_level=INFO tests/integration