Skip to content

Commit a5a7604

Browse files
committed
ci: fix allure report generation and upload
1 parent 27b2a4b commit a5a7604

1 file changed

Lines changed: 48 additions & 1 deletion

File tree

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

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,20 @@ jobs:
9797
9898
- name: "Kind: Run integration tests HTTP"
9999
env:
100-
CORE_HELM_CHART_VERSION: "0.3.0"
100+
HELM_CHART_VERSION: "0.3.0"
101+
CORE_IMAGE_TAG: ${{ inputs.tag_version || vars.DEFAULT_CORE_IMAGE_TAG }}
101102
run: |
103+
<<<<<<< HEAD
102104
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-kind --alluredir=allure-results-kind/
105+
=======
106+
pytest -o log_cli=true -o log_cli_level=WARNING tests/integration -k "core" --run-kind --alluredir=allure-results-kind-http/
107+
>>>>>>> bd09a6beca (ci: fix allure report generation and upload)
103108

104109
- name: Allure Reports
105110
uses: firebolt-db/action-allure-report@8cdc116f65f6eca845a992e347e72b75ca8ccf5f # v2.1.1
106111
if: always()
107112
with:
113+
<<<<<<< HEAD
108114
github-token: ${{ github.token }}
109115
pages-branch: gh-pages
110116
mapping-json: |
@@ -113,3 +119,44 @@ jobs:
113119
"allure-results-https": "core_https",
114120
"allure-results-kind": "core_kind"
115121
}
122+
=======
123+
ref: gh-pages
124+
path: gh-pages
125+
126+
- name: Install Allure CLI
127+
id: install-allure
128+
if: always()
129+
env:
130+
ALLURE_VERSION: "2.38.1"
131+
run: |
132+
npm install -g allure-commandline
133+
134+
- name: Generate All Reports Locally
135+
id: generate-reports
136+
if: always() && steps.install-allure.outcome == 'success'
137+
run: |
138+
REPORT_BASE="allure-final/allure/python-sdk_${{ github.sha }}"
139+
allure generate allure-results -o "${REPORT_BASE}_core"
140+
allure generate allure-results-https -o "${REPORT_BASE}_core_https"
141+
allure generate allure-results-kind-http -o "${REPORT_BASE}_core_kind"
142+
143+
- name: Deploy all reports to GitHub Pages
144+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
145+
id: deploy-reports
146+
if: always() && steps.generate-reports.outcome == 'success'
147+
with:
148+
github_token: ${{ secrets.GITHUB_TOKEN }}
149+
publish_branch: gh-pages
150+
publish_dir: ./allure-final
151+
keep_files: true
152+
153+
- name: Set Job Summary
154+
if: always() && steps.deploy-reports.outcome == 'success'
155+
env:
156+
BASE_URL: "https://python.docs.firebolt.io/allure/python-sdk_${{ github.sha }}"
157+
run: |
158+
echo "### Test Reports" >> $GITHUB_STEP_SUMMARY
159+
echo "* [Core HTTP Report](${BASE_URL}_core)" >> $GITHUB_STEP_SUMMARY
160+
echo "* [HTTPS Report](${BASE_URL}_core_https)" >> $GITHUB_STEP_SUMMARY
161+
echo "* [Kind HTTP Report](${BASE_URL}_core_kind)" >> $GITHUB_STEP_SUMMARY
162+
>>>>>>> bd09a6beca (ci: fix allure report generation and upload)

0 commit comments

Comments
 (0)