File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,15 +31,18 @@ jobs:
3131 python -m pip install --upgrade pip
3232 pip install -r requirements.txt
3333
34+ - name : Create report directory
35+ run : mkdir -p ./reports/${{ github.run_id }}
36+
3437 - name : Run load tests and generate HTML report
35- run : locust --config=${{ github.event.inputs.SCENARIO }} --html=index.html
38+ run : locust --config=${{ github.event.inputs.SCENARIO }} --html=./reports/${{ github.run_id }}/ index.html
3639
3740 - name : Upload Locust reports
3841 if : always()
3942 uses : actions/upload-artifact@v4
4043 with :
41- name : report
42- path : index.html
44+ name : reports
45+ path : reports
4346
4447 publish-report :
4548 if : always()
@@ -50,13 +53,13 @@ jobs:
5053 - name : Download Locust reports
5154 uses : actions/download-artifact@v4
5255 with :
53- name : report
54- path : public
56+ name : reports
57+ path : reports
5558
5659 - name : Deploy HTML report to GitHub Pages
5760 uses : peaceiris/actions-gh-pages@v4
5861 with :
5962 github_token : ${{ secrets.GITHUB_TOKEN }}
6063 keep_files : true
61- publish_dir : public
64+ publish_dir : reports
6265 publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments