Skip to content

Commit e6737e6

Browse files
authored
ci: Adding integration tests (#40)
1 parent 08f9d13 commit e6737e6

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Firebolt Python Integration tests
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
integration-tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.7
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install ".[dev]"
22+
23+
- name: Setup database and engine
24+
id: setup
25+
uses: firebolt-db/integration-testing-setup@master
26+
with:
27+
firebolt-username: ${{ secrets.FIREBOLT_USERNAME }}
28+
firebolt-password: ${{ secrets.FIREBOLT_PASSWORD }}
29+
api-endpoint: "api.dev.firebolt.io"
30+
region: "us-east-1"
31+
32+
- name: Run integration tests
33+
env:
34+
USER_NAME: ${{ secrets.FIREBOLT_USERNAME }}
35+
PASSWORD: ${{ secrets.FIREBOLT_PASSWORD }}
36+
DATABASE_NAME: ${{ steps.setup.outputs.database_name }}
37+
ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
38+
ENGINE_URL: ${{ steps.setup.outputs.engine_url }}
39+
STOPPED_ENGINE_NAME: ${{ steps.setup.outputs.stopped_engine_name }}
40+
STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }}
41+
API_ENDPOINT: "api.dev.firebolt.io"
42+
run: |
43+
pytest -o log_cli=true -o log_cli_level=INFO tests/integration

0 commit comments

Comments
 (0)