Skip to content

Commit 90a5c54

Browse files
MNT add asv preview (#149)
1 parent f78f904 commit 90a5c54

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

.github/workflows/asv.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
needs: run-benchmarks
5050
permissions:
5151
contents: write
52+
pages: write
53+
id-token: write
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
5257

5358
steps:
5459
- uses: actions/checkout@v5
@@ -57,8 +62,7 @@ jobs:
5762

5863
- name: Set up main branch
5964
if: github.event_name == 'pull_request'
60-
run: |
61-
git branch main origin/main
65+
run: git branch main origin/main
6266

6367
- name: Prepare previous ASV results
6468
uses: actions/checkout@v5
@@ -90,20 +94,28 @@ jobs:
9094
cache: true
9195

9296
- name: Generate HTML report
93-
run: |
94-
pixi run asv-publish
95-
97+
run: pixi run asv-publish
98+
9699
- name: Copy results to publish directory
97-
run: |
98-
cp -r asv_benchmarks/results asv_benchmarks/html/results
100+
run: cp -r asv_benchmarks/results asv_benchmarks/html/results
99101

100-
- name: Deploy to GitHub Pages
101-
uses: peaceiris/actions-gh-pages@v4
102+
- name: Deploy history to gh-pages
102103
if: github.event_name == 'push'
104+
uses: peaceiris/actions-gh-pages@v4
103105
with:
104106
github_token: ${{ secrets.GITHUB_TOKEN }}
105107
publish_dir: asv_benchmarks/html
106108
keep_files: true
107109
user_name: 'github-actions[bot]'
108110
user_email: 'github-actions[bot]@users.noreply.github.com'
109-
commit_message: ${{ github.event.head_commit.message }}
111+
commit_message: ${{ github.event.head_commit.message }}
112+
113+
- name: Upload artifact
114+
uses: actions/upload-pages-artifact@v3
115+
with:
116+
path: asv_benchmarks/html
117+
118+
- name: Deploy to GitHub Pages
119+
id: deployment
120+
if: github.event_name == 'push'
121+
uses: actions/deploy-pages@v4

.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"

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fastcan: A fast canonical-correlation-based greedy search algorithm
2727
:target: https://pixi.sh
2828

2929
.. |asv| image:: https://img.shields.io/badge/benchmarked%20by-asv-blue.svg?style=flat
30-
:target: http://contrib.scikit-learn.org/fastcan/
30+
:target: https://contrib.scikit-learn.org/fastcan/
3131

3232
fastcan is a greedy search algorithm that supports:
3333

0 commit comments

Comments
 (0)