Skip to content

Commit 4a00566

Browse files
committed
MNT add asv preview
1 parent f78f904 commit 4a00566

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

.github/workflows/asv.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
needs: run-benchmarks
5050
permissions:
5151
contents: write
52+
pages: write
53+
id-token: write
5254

5355
steps:
5456
- uses: actions/checkout@v5
@@ -57,8 +59,7 @@ jobs:
5759

5860
- name: Set up main branch
5961
if: github.event_name == 'pull_request'
60-
run: |
61-
git branch main origin/main
62+
run: git branch main origin/main
6263

6364
- name: Prepare previous ASV results
6465
uses: actions/checkout@v5
@@ -90,20 +91,28 @@ jobs:
9091
cache: true
9192

9293
- name: Generate HTML report
93-
run: |
94-
pixi run asv-publish
95-
94+
run: pixi run asv-publish
95+
9696
- name: Copy results to publish directory
97-
run: |
98-
cp -r asv_benchmarks/results asv_benchmarks/html/results
97+
run: cp -r asv_benchmarks/results asv_benchmarks/html/results
9998

100-
- name: Deploy to GitHub Pages
101-
uses: peaceiris/actions-gh-pages@v4
99+
- name: Upload artifact for PR preview
100+
if: github.event_name == 'pull_request'
101+
uses: actions/upload-pages-artifact@v4
102+
with:
103+
path: asv_benchmarks/html
104+
105+
- name: Deploy PR preview
106+
if: github.event_name == 'pull_request'
107+
uses: actions/deploy-pages@v4
108+
109+
- name: Deploy to GitHub Pages (main)
102110
if: github.event_name == 'push'
111+
uses: peaceiris/actions-gh-pages@v4
103112
with:
104113
github_token: ${{ secrets.GITHUB_TOKEN }}
105114
publish_dir: asv_benchmarks/html
106115
keep_files: true
107116
user_name: 'github-actions[bot]'
108117
user_email: 'github-actions[bot]@users.noreply.github.com'
109-
commit_message: ${{ github.event.head_commit.message }}
118+
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v5
1111
- name: Build WASM wheel
12-
uses: pypa/[email protected].3
12+
uses: pypa/[email protected].4
1313
env:
1414
CIBW_PLATFORM: pyodide
1515
- name: Upload package

.github/workflows/wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v5
3535
- name: Build wheels
36-
uses: pypa/[email protected].3
36+
uses: pypa/[email protected].4
3737
env:
3838
CIBW_SKIP: "*_i686 *_ppc64le *_s390x *_universal2 *-musllinux_* cp314*"
3939
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10"

0 commit comments

Comments
 (0)