Skip to content

Commit 335b823

Browse files
committed
ci: fix allure report generation and upload
1 parent 1b63d80 commit 335b823

1 file changed

Lines changed: 35 additions & 30 deletions

File tree

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

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ jobs:
9494
9595
- name: "Kind: Run integration tests HTTP"
9696
env:
97-
CORE_HELM_CHART_VERSION: "0.3.0"
97+
HELM_CHART_VERSION: "0.3.0"
98+
CORE_IMAGE_TAG: ${{ inputs.tag_version || vars.DEFAULT_CORE_IMAGE_TAG }}
9899
run: |
99-
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-kind --alluredir=allure-results/
100+
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-kind --alluredir=allure-results-kind-http/
100101
101102
# Need to pull the pages branch in order to fetch the previous runs
102103
- name: Get Allure history
@@ -107,35 +108,39 @@ jobs:
107108
ref: gh-pages
108109
path: gh-pages
109110

110-
- name: "Compose: Allure Report"
111-
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
111+
- name: Install Allure CLI
112+
id: install-allure
112113
if: always()
113-
continue-on-error: true
114-
with:
115-
github-key: ${{ secrets.GITHUB_TOKEN }}
116-
test-type: core
117-
allure-dir: allure-results
118-
pages-branch: gh-pages
119-
repository-name: python-sdk
114+
env:
115+
ALLURE_VERSION: "2.38.1"
116+
run: |
117+
npm install -g allure-commandline
120118
121-
- name: "Compose: Allure Report HTTPS"
122-
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
123-
if: always()
124-
continue-on-error: true
125-
with:
126-
github-key: ${{ secrets.GITHUB_TOKEN }}
127-
test-type: core_https
128-
allure-dir: allure-results-https
129-
pages-branch: gh-pages
130-
repository-name: python-sdk
119+
- name: Generate All Reports Locally
120+
id: generate-reports
121+
if: always() && steps.install-allure.outcome == 'success'
122+
run: |
123+
REPORT_BASE="allure-final/allure/python-sdk_${{ github.sha }}"
124+
allure generate allure-results -o "${REPORT_BASE}_core"
125+
allure generate allure-results-https -o "${REPORT_BASE}_core_https"
126+
allure generate allure-results-kind-http -o "${REPORT_BASE}_core_kind"
131127
132-
- name: "Kind: Allure Report HTTP"
133-
uses: firebolt-db/action-allure-report@781b4529b67b4f393c63d7dc1e098cb558e1ab16 # v1.4.1
134-
if: always()
135-
continue-on-error: true
128+
- name: Deploy all reports to GitHub Pages
129+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
130+
id: deploy-reports
131+
if: always() && steps.generate-reports.outcome == 'success'
136132
with:
137-
github-key: ${{ secrets.GITHUB_TOKEN }}
138-
test-type: core_kind
139-
allure-dir: allure-results-kind-http
140-
pages-branch: gh-pages
141-
repository-name: python-sdk
133+
github_token: ${{ secrets.GITHUB_TOKEN }}
134+
publish_branch: gh-pages
135+
publish_dir: ./allure-final
136+
keep_files: true
137+
138+
- name: Set Job Summary
139+
if: always() && steps.deploy-reports.outcome == 'success'
140+
env:
141+
BASE_URL: "https://python.docs.firebolt.io/allure/python-sdk_${{ github.sha }}"
142+
run: |
143+
echo "### Test Reports" >> $GITHUB_STEP_SUMMARY
144+
echo "* [Core HTTP Report](${BASE_URL}_core)" >> $GITHUB_STEP_SUMMARY
145+
echo "* [HTTPS Report](${BASE_URL}_core_https)" >> $GITHUB_STEP_SUMMARY
146+
echo "* [Kind HTTP Report](${BASE_URL}_core_kind)" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)