44 pull_request :
55 branches : [ main ]
66 paths :
7- - ' **/*.py'
8- - ' **/*.toml'
9- - ' **/*.lock'
10- - ' .github/workflows/devRun.yml'
7+ - " **/*.py"
8+ - " **/*.toml"
9+ - " **/*.lock"
10+ - " .github/workflows/devRun.yml"
1111
1212permissions :
13- contents : write
13+ contents : read
14+ pull-requests : write
15+ checks : write
1416 pages : write
17+ id-token : write
1518
1619jobs :
1720 merge_test :
2225 - name : Set up Python
2326 uses : actions/setup-python@v6
2427 with :
25- python-version : ' 3.14'
28+ python-version : " 3.14"
2629 - name : Set up uv
2730 uses : astral-sh/setup-uv@v7
2831 with :
@@ -39,31 +42,44 @@ jobs:
3942 - name : Auto-assign reviewers
4043 uses : kentaro-m/auto-assign-action@v2.0.0
4144 if : success()
42- - name : Link Git Information And Browser Version To Allure Report
43- working-directory : allure-results
45+ - name : Link Git Information And Browser Version To Allure Results
4446 if : always()
47+ working-directory : allure-results
4548 run : |
4649 {
47- echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
48- echo GIT_BRANCH=${{ github.head_ref || github.ref_name }}
49- echo GIT_COMMIT_ID=${{ github.sha }}
50- echo GIT_COMMIT_MESSAGE=$(git show -s --format=%s HEAD)
51- echo GIT_COMMIT_AUTHOR_NAME=$(git show -s --format='%ae' HEAD)
52- echo GIT_COMMIT_TIME=$(git show -s --format=%ci HEAD)
53- echo CHROME_VERSION=$(google-chrome --product-version)
50+ echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
51+ echo GIT_BRANCH=${{ github.head_ref || github.ref_name }}
52+ echo GIT_COMMIT_ID=${{ github.sha }}
53+ echo GIT_COMMIT_MESSAGE=" $(git show -s --format=%s HEAD)"
54+ echo GIT_COMMIT_AUTHOR_NAME=" $(git show -s --format='%ae' HEAD)"
55+ echo GIT_COMMIT_TIME=" $(git show -s --format=%ci HEAD)"
56+ echo CHROME_VERSION=" $(google-chrome --product-version 2>/dev/null || true)"
5457 } >> environment.properties
55- - name : Generate Allure Report
56- uses : simple-elf/allure-report-action@v1.13
58+ - name : Generate Allure HTML report (Allure 3 CLI via npx)
59+ if : always()
60+ run : npx -y allure generate allure-results --output allure-report
61+ - name : Allure PR summary
5762 if : always()
58- id : allure-report
63+ uses : allure-framework/allure-action@v0.6.2
5964 with :
60- allure_results : allure-results
61- allure_report : allure-report
62- gh_pages : gh-pages
63- allure_history : allure-history
64- - name : Deploy Report To Github Pages
65+ report-directory : " ./allure-report"
66+ github-token : ${{ secrets.GITHUB_TOKEN }}
67+ - name : Upload Pages artifact
6568 if : always()
66- uses : peaceiris/ actions-gh- pages@v4
69+ uses : actions/upload- pages-artifact @v4
6770 with :
68- github_token : ${{ secrets.GITHUB_TOKEN }}
69- publish_dir : allure-history
71+ path : allure-report
72+ deploy_pages :
73+ needs : merge_test
74+ if : always()
75+ runs-on : ubuntu-latest
76+ permissions :
77+ pages : write
78+ id-token : write
79+ environment :
80+ name : github-pages
81+ url : ${{ steps.deployment.outputs.page_url }}
82+ steps :
83+ - name : Deploy to GitHub Pages
84+ id : deployment
85+ uses : actions/deploy-pages@v4
0 commit comments