diff --git a/.github/workflows/asv.yml b/.github/workflows/asv.yml index df06c60..20c5e22 100644 --- a/.github/workflows/asv.yml +++ b/.github/workflows/asv.yml @@ -49,6 +49,11 @@ jobs: needs: run-benchmarks permissions: contents: write + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v5 @@ -57,8 +62,7 @@ jobs: - name: Set up main branch if: github.event_name == 'pull_request' - run: | - git branch main origin/main + run: git branch main origin/main - name: Prepare previous ASV results uses: actions/checkout@v5 @@ -90,20 +94,28 @@ jobs: cache: true - name: Generate HTML report - run: | - pixi run asv-publish - + run: pixi run asv-publish + - name: Copy results to publish directory - run: | - cp -r asv_benchmarks/results asv_benchmarks/html/results + run: cp -r asv_benchmarks/results asv_benchmarks/html/results - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 + - name: Deploy history to gh-pages if: github.event_name == 'push' + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: asv_benchmarks/html keep_files: true user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' - commit_message: ${{ github.event.head_commit.message }} \ No newline at end of file + commit_message: ${{ github.event.head_commit.message }} + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: asv_benchmarks/html + + - name: Deploy to GitHub Pages + id: deployment + if: github.event_name == 'push' + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 507baa7..6ec2100 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -9,7 +9,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Build WASM wheel - uses: pypa/cibuildwheel@v3.1.3 + uses: pypa/cibuildwheel@v3.1.4 env: CIBW_PLATFORM: pyodide - name: Upload package diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 9bd4ac8..4c8d192 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -33,7 +33,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Build wheels - uses: pypa/cibuildwheel@v3.1.3 + uses: pypa/cibuildwheel@v3.1.4 env: CIBW_SKIP: "*_i686 *_ppc64le *_s390x *_universal2 *-musllinux_* cp314*" CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10" diff --git a/README.rst b/README.rst index c91e0e4..711dbc4 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ fastcan: A fast canonical-correlation-based greedy search algorithm :target: https://pixi.sh .. |asv| image:: https://img.shields.io/badge/benchmarked%20by-asv-blue.svg?style=flat - :target: http://contrib.scikit-learn.org/fastcan/ + :target: https://contrib.scikit-learn.org/fastcan/ fastcan is a greedy search algorithm that supports: