Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions as recommended in SPEC8:
# https://github.com/scientific-python/specs/pull/325
# Every `uses:` pointing to another repository references a full version tag,
# and is pinned to a commit in .github/workflows/actions.lock, generated by
# `gh actions-lock`. Dependabot updates the lockfile in its PRs.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
actions:
patterns:
- "*"
labels:
- "dependencies"
- "CI"
105 changes: 105 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# This file is machine-generated by `gh actions-lock`.
# Do not edit by hand; run `gh actions-lock` to update.
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/publish-to-pypi.yml':
- 'actions/checkout@v4.4.0'
- 'actions/download-artifact@v4.3.0'
- 'actions/setup-python@v5.6.0'
- 'actions/upload-artifact@v4.6.2'
- 'pypa/gh-action-pypi-publish@v1.14.3'
- 'sigstore/gh-action-sigstore-python@v3.0.0'
'.github/workflows/test.yml':
- 'actions/cache@v4.3.0'
- 'actions/checkout@v3.7.0'
- 'actions/download-artifact@v4.3.0'
- 'actions/setup-python@v4.9.1'
- 'actions/upload-artifact@v4.6.2'
- 'codecov/codecov-action@v5.5.5'
- 'conda-incubator/setup-miniconda@v3.3.0'
'.github/workflows/verify-actions-lock.yml':
- 'actions/checkout@v4.4.0'
dependencies:
'actions/cache@v4.3.0':
ref: 'v4.3.0'
commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830'
owner_id: 44036562
repo_id: 215566462
'actions/checkout@v3.7.0':
ref: 'v3.7.0'
commit: 'sha1-a37ce9120846195fa4ece8f58b268e6043cb2f26'
owner_id: 44036562
repo_id: 197814629
'actions/checkout@v4.4.0':
ref: 'v4.4.0'
commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262'
owner_id: 44036562
repo_id: 197814629
'actions/download-artifact@v4.3.0':
ref: 'v4.3.0'
commit: 'sha1-d3f86a106a0bac45b974a628896c90dbdf5c8093'
owner_id: 44036562
repo_id: 192626254
'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea':
ref: 'v7.0.1'
commit: 'sha1-60a0d83039c74a4aee543508d2ffcb1c3799cdea'
owner_id: 44036562
repo_id: 205262760
'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
ref: 'v6.2.0'
commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
owner_id: 44036562
repo_id: 192625525
'actions/setup-python@v4.9.1':
ref: 'v4.9.1'
commit: 'sha1-7f4fc3e22c37d6ff65e88745f38bd3157c663f7c'
owner_id: 44036562
repo_id: 192625525
'actions/setup-python@v5.6.0':
ref: 'v5.6.0'
commit: 'sha1-a26af69be951a213d495a4c3e4e4022e16d87065'
owner_id: 44036562
repo_id: 192625525
'actions/upload-artifact@v4':
ref: 'v4'
commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02'
owner_id: 44036562
repo_id: 192625955
'actions/upload-artifact@v4.6.2':
ref: 'v4.6.2'
commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02'
owner_id: 44036562
repo_id: 192625955
'codecov/codecov-action@v5.5.5':
ref: 'v5.5.5'
commit: 'sha1-0fb7174895f61a3b6b78fc075e0cd60383518dac'
owner_id: 8226205
repo_id: 200299178
uses:
- 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea'
'conda-incubator/setup-miniconda@v3.3.0':
ref: 'v3.3.0'
commit: 'sha1-fc2d68f6413eb2d87b895e92f8584b5b94a10167'
owner_id: 68608217
repo_id: 228279841
'pypa/gh-action-pypi-publish@v1.14.3':
ref: 'v1.14.3'
commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
owner_id: 647025
repo_id: 178055147
uses:
- 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
'sigstore/gh-action-sigstore-python@v3.0.0':
ref: 'v3.0.0'
commit: 'sha1-f514d46b907ebcd5bedc05145c03b69c1edd8b46'
owner_id: 71096353
repo_id: 508560980
uses:
- 'actions/upload-artifact@v4'
- 'softprops/action-gh-release@v2'
'softprops/action-gh-release@v2':
ref: 'v2'
commit: 'sha1-3bb12739c298aeb8a4eeaf626c5b8d85266b0e65'
owner_id: 2242
repo_id: 204253808
16 changes: 8 additions & 8 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.4.0
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.6.0
with:
python-version: "3.x"

Expand All @@ -28,7 +28,7 @@ jobs:
run: python -m build

- name: Store the distribution packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.6.2
with:
name: python-package-distributions
path: dist/
Expand All @@ -49,12 +49,12 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.3.0
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.14.3

github-release:
name: >-
Expand All @@ -70,7 +70,7 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.3.0
with:
name: python-package-distributions
path: dist/
Expand Down Expand Up @@ -114,12 +114,12 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.3.0
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.14.3
with:
verbose: true
# skip-existing is required for .dev0 versions with fixed names but
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.7.0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v4.9.1
with:
python-version: "3.14"

Expand Down Expand Up @@ -285,19 +285,19 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v3.7.0

- name: Restore ccache
if: matrix.INSTALL_BLAS == 'flexiblas'
uses: actions/cache@v4
uses: actions/cache@v4.3.0
with:
path: ~/.cache/ccache
key: ccache-flexiblas-${{ matrix.os }}-${{ hashFiles('continuous_integration/install_flexiblas.sh') }}
restore-keys: |
ccache-flexiblas-${{ matrix.os }}-

- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
uses: conda-incubator/setup-miniconda@v3.3.0
with:
auto-activate-base: true
auto-update-conda: true
Expand All @@ -312,15 +312,15 @@ jobs:
./continuous_integration/run_tests.sh

- name: Upload test results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.6.2
with:
# Requires a unique name for each job in the matrix of this run
name: test_result_${{github.run_id}}_${{ matrix.os }}_${{ matrix.name }}
path: test_result.xml
retention-days: 1

- name: Upload to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v5.5.5
with:
files: coverage.xml

Expand All @@ -332,15 +332,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v4.9.1
with:
python-version: "3.12"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v3.7.0

- name: Download tests results
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.3.0
with:
path: test_results

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/verify-actions-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Fails when .github/workflows/actions.lock is out of sync with the
# workflows, or when a locked commit no longer verifies upstream.
name: Verify actions lockfile
permissions:
contents: read

on:
pull_request:
push:
branches:
- master

jobs:
verify-actions-lock:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4.4.0
with:
persist-credentials: false
- run: gh extension install github/gh-actions-lock --pin v0.4.1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from the same action in scikit-learn, but I noticed the gh-actions-lock version is manually pinned here to v0.4.1. I don't know why it is the case and dependabot won't update it, as it only cares about the "uses" pattern. So this needs to be manually bumped. I don't see the advantage but I blindly followed the scikit-learn example.

- run: gh actions-lock --verify
Loading