@@ -108,35 +108,36 @@ jobs:
108108 ref : gh-pages
109109 path : gh-pages
110110
111- - name : " Compose: Allure Report"
112- uses : firebolt-db/action-allure-report@v1
111+ - name : Install Allure CLI
112+ run : |
113+ wget https://github.com
114+ tar -zxf allure-2.24.0.tgz
115+ sudo mv allure-2.24.0 /opt/allure
116+ sudo ln -s /opt/allure/bin/allure /usr/bin/allure
117+
118+ - name : Generate All Reports Locally
113119 if : always()
114- continue-on-error : true
115- with :
116- github-key : ${{ secrets.GITHUB_TOKEN }}
117- test-type : core
118- allure-dir : allure-results
119- pages-branch : gh-pages
120- repository-name : python-sdk
120+ run : |
121+ REPORT_BASE="allure-final/allure/python-sdk_${{ github.sha }}"
121122
122- - name : " Compose: Allure Report HTTPS"
123- uses : firebolt-db/action-allure-report@v1
123+ allure generate allure-results -o "${REPORT_BASE}_core"
124+ allure generate allure-results-https -o "${REPORT_BASE}_core_https"
125+ allure generate allure-results-kind-http -o "${REPORT_BASE}_core_kind"
126+
127+ - name : Deploy all reports to GitHub Pages
128+ uses : peaceiris/actions-gh-pages@v4
124129 if : always()
125- continue-on-error : true
126130 with :
127- github-key : ${{ secrets.GITHUB_TOKEN }}
128- test-type : core_https
129- allure-dir : allure-results-https
130- pages-branch : gh-pages
131- repository-name : python-sdk
131+ github_token : ${{ secrets.GITHUB_TOKEN }}
132+ publish_branch : gh-pages
133+ publish_dir : ./allure-final
134+ keep_files : true
132135
133- - name : " Kind: Allure Report HTTP"
134- uses : firebolt-db/action-allure-report@v1
136+ - name : Set Job Summary
135137 if : always()
136- continue-on-error : true
137- with :
138- github-key : ${{ secrets.GITHUB_TOKEN }}
139- test-type : core_kind
140- allure-dir : allure-results-kind-http
141- pages-branch : gh-pages
142- repository-name : python-sdk
138+ run : |
139+ BASE_URL="https://${{ github.repository_owner }}.github.io/python-sdk/allure/python-sdk_${{ github.sha }}"
140+ echo "### Test Reports" >> $GITHUB_STEP_SUMMARY
141+ echo "* [Core HTTP Report](${BASE_URL}_core)" >> $GITHUB_STEP_SUMMARY
142+ echo "* [HTTPS Report](${BASE_URL}_core_https)" >> $GITHUB_STEP_SUMMARY
143+ echo "* [Kind HTTP Report](${BASE_URL}_core_kind)" >> $GITHUB_STEP_SUMMARY
0 commit comments