Skip to content
Open
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
42 changes: 13 additions & 29 deletions .github/workflows/integration-tests-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ on:
required: false
jobs:
run-core-integration-tests:
permissions:
contents: write # Push allure reports to gh-pages
statuses: write # Update status on PR
runs-on: ${{ inputs.os_name }}
steps:
- name: Check out code
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
ACCOUNT_NAME: ""
CORE_URL: ${{ steps.setup-core.outputs.service_url }}
run: |
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --alluredir=allure-results/
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --alluredir=allure-results/

- name: Run integration tests HTTPS
env:
Expand All @@ -90,35 +93,16 @@ jobs:
ACCOUNT_NAME: ""
CORE_URL: ${{ steps.setup-core.outputs.service_https_url }}
run: |
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --alluredir=allure-results-https/
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --alluredir=allure-results-https/

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

- name: Allure Report
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
if: always()
continue-on-error: true
with:
github-key: ${{ secrets.GITHUB_TOKEN }}
test-type: core
allure-dir: allure-results
pages-branch: gh-pages
repository-name: python-sdk

- name: Allure Report HTTPS
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
- name: Allure Reports
uses: firebolt-db/action-allure-report@084466f7dc8c9dd585d7d03825271f639ade9333 # v2.0.1
if: always()
continue-on-error: true
with:
github-key: ${{ secrets.GITHUB_TOKEN }}
test-type: core_https
allure-dir: allure-results-https
github-token: ${{ github.token }}
pages-branch: gh-pages
repository-name: python-sdk
mapping-json: |
{
"allure-results": "core",
"allure-results-https": "core_https"
}
3 changes: 3 additions & 0 deletions .github/workflows/integration-tests-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
required: true
jobs:
tests:
permissions:
contents: write # Push allure reports to gh-pages
statuses: write # Update status on PR
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:

jobs:
tests:
permissions:
contents: write # Push allure reports to gh-pages
statuses: write # Update status on PR
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down Expand Up @@ -58,23 +61,15 @@ jobs:
ACCOUNT_NAME: ${{ vars.FIREBOLT_ACCOUNT }}
LONG_TEST_VALUE: ${{ vars.LONG_TEST_VALUE_V2 }}
run: |
pytest -n 6 --dist loadgroup --timeout_method "signal" -o log_cli=true -o log_cli_level=WARNING tests/integration -k "not V1 and not core" --runslow --alluredir=allure-results

# Need to pull the pages branch in order to fetch the previous runs
- name: Get Allure history
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
pytest -n 6 --dist loadgroup --timeout_method "signal" -o log_cli=true -o log_cli_level=WARNING tests/integration -k "not V1 and not core" --runslow --alluredir=allure-results

- name: Allure Report
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
uses: firebolt-db/action-allure-report@084466f7dc8c9dd585d7d03825271f639ade9333 # v2.0.1
if: always()
with:
github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }}
test-type: integration
allure-dir: allure-results
github-token: ${{ inputs.token || secrets.GITHUB_TOKEN }}
pages-branch: gh-pages
repository-name: python-sdk
mapping-json: |
{
"allure-results": "integration_v2"
}
21 changes: 9 additions & 12 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
permissions:
contents: write
contents: write # Push allure reports to gh-pages
statuses: write # Update status on PR
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -41,20 +42,16 @@ jobs:
run: |
pytest --cov=src/ tests/unit --cov-report=xml --alluredir=allure-results

- name: Get Allure history
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Allure Report
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
uses: firebolt-db/action-allure-report@084466f7dc8c9dd585d7d03825271f639ade9333 # v2.0.1
if: always()
continue-on-error: true
with:
github-key: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ github.token }}
pages-branch: gh-pages
mapping-json: |
{
"allure-results": "unit"
}

- name: Upload coverage report
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
Expand Down
Loading