Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,25 @@ on:
required: true
FIREBOLT_CLIENT_SECRET_STG_NEW_IDN:
required: true
inputs:
engine-version:
description: 'Engine version to use for integration tests'
required: false
type: string
default: ''
token:
description: 'GitHub token if called from another workflow'
required: false
type: string

jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
repository: firebolt-db/firebolt-sqlalchemy

- name: Set up Python 3.8
uses: actions/setup-python@v5
Expand All @@ -24,7 +36,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
python -m pip install ".[dev]"

- name: Setup database and engine
id: setup
Expand Down Expand Up @@ -53,7 +65,7 @@ jobs:
FIREBOLT_BASE_URL: "api.staging.firebolt.io"
ACCOUNT_NAME: ${{ vars.FIREBOLT_ACCOUNT }}
run: |
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration --alluredir=allure-results

- name: Save failed tests
id: cache-tests-save
Expand All @@ -63,3 +75,22 @@ jobs:
path: |
.pytest_cache/v/cache/lastfailed
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}

# Need to pull the pages branch in order to fetch the previous runs
- name: Get Allure history
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Allure Report
uses: firebolt-db/action-allure-report@v1
if: always()
with:
github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }}
test-type: integration
allure-dir: allure-results
pages-branch: gh-pages
repository-name: firebolt-sqlalchemy
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ sqlalchemy.dialects =

[options.extras_require]
dev =
allure-pytest==2.*
devtools==0.7.0
greenlet==2.0.2
mock==4.0.3
Expand Down