Skip to content

Commit 0993b2d

Browse files
authored
ci: Add Allure and calls from central repo (#101)
1 parent 775e3a2 commit 0993b2d

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/integration-tests-v2.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,25 @@ on:
88
required: true
99
FIREBOLT_CLIENT_SECRET_STG_NEW_IDN:
1010
required: true
11+
inputs:
12+
engine-version:
13+
description: 'Engine version to use for integration tests'
14+
required: false
15+
type: string
16+
default: ''
17+
token:
18+
description: 'GitHub token if called from another workflow'
19+
required: false
20+
type: string
1121

1222
jobs:
1323
integration-tests:
1424
runs-on: ubuntu-latest
1525
steps:
1626
- name: Check out code
1727
uses: actions/checkout@v2
28+
with:
29+
repository: firebolt-db/firebolt-sqlalchemy
1830

1931
- name: Set up Python 3.8
2032
uses: actions/setup-python@v5
@@ -24,7 +36,7 @@ jobs:
2436
- name: Install dependencies
2537
run: |
2638
python -m pip install --upgrade pip
27-
pip install ".[dev]"
39+
python -m pip install ".[dev]"
2840
2941
- name: Setup database and engine
3042
id: setup
@@ -53,7 +65,7 @@ jobs:
5365
FIREBOLT_BASE_URL: "api.staging.firebolt.io"
5466
ACCOUNT_NAME: ${{ vars.FIREBOLT_ACCOUNT }}
5567
run: |
56-
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration
68+
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration --alluredir=allure-results
5769
5870
- name: Save failed tests
5971
id: cache-tests-save
@@ -63,3 +75,22 @@ jobs:
6375
path: |
6476
.pytest_cache/v/cache/lastfailed
6577
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}
78+
79+
# Need to pull the pages branch in order to fetch the previous runs
80+
- name: Get Allure history
81+
uses: actions/checkout@v4
82+
if: always()
83+
continue-on-error: true
84+
with:
85+
ref: gh-pages
86+
path: gh-pages
87+
88+
- name: Allure Report
89+
uses: firebolt-db/action-allure-report@v1
90+
if: always()
91+
with:
92+
github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }}
93+
test-type: integration
94+
allure-dir: allure-results
95+
pages-branch: gh-pages
96+
repository-name: firebolt-sqlalchemy

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ sqlalchemy.dialects =
4141

4242
[options.extras_require]
4343
dev =
44+
allure-pytest==2.*
4445
devtools==0.7.0
4546
greenlet==2.0.2
4647
mock==4.0.3

0 commit comments

Comments
 (0)