Skip to content

Commit 8259290

Browse files
committed
modernize workflows
1 parent 36fd6a1 commit 8259290

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
environment: release
1515
permissions:
1616
id-token: write
17+
attestations: write
18+
contents: read
1719
steps:
18-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
21+
with:
22+
fetch-depth: 0 # Fetch all history for hatch-vcs to determine version
1923
- name: Set up Python
20-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@v6
2125
with:
2226
python-version: "3.12"
2327
- name: Install pypa/build
@@ -38,6 +42,7 @@ jobs:
3842
uses: pypa/gh-action-pypi-publish@release/v1
3943
with:
4044
verbose: true
45+
attestations: true
4146
- name: Postrelease
4247
run: |
4348
git config user.name "${{ env.CI_COMMIT_AUTHOR }}"

.github/workflows/tests.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Install uv
18-
uses: astral-sh/setup-uv@v5
18+
uses: astral-sh/setup-uv@v7
1919
- name: Run lint with tox
2020
run: uvx --with tox-uv tox -e lint
2121

@@ -40,9 +40,11 @@ jobs:
4040
runs-on: ${{ matrix.os }}
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v5
44+
with:
45+
fetch-depth: 0 # Fetch all history for hatch-vcs to work
4446
- name: Install uv
45-
uses: astral-sh/setup-uv@v5
47+
uses: astral-sh/setup-uv@v7
4648
- name: Set up Python ${{ matrix.python-config.version }}
4749
run: uv python install ${{ matrix.python-config.version }}
4850
- name: Configure git for tests

0 commit comments

Comments
 (0)