Skip to content

Commit dd36fc2

Browse files
ci: align the release pipeline and dependabot with the org standard (#2)
Brings the repo in line with the org standard (pg-partsmith as the reference), after today's redis-client-kit release uploaded a stale wheel. - dependabot: `uv` + `github-actions`, one grouped PR a week each — the `pip` ecosystem never updated `uv.lock` - `actions/checkout@v7` in the generated workflows - Publish: `uv publish --check-url`, so a re-run after a failure skips what is already on the index instead of failing on it CI-only, no behaviour change in the package; no release is cut by this.
1 parent 9496c67 commit dd36fc2

4 files changed

Lines changed: 25 additions & 19 deletions

File tree

template/.github/dependabot.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1+
# The actions the workflows run and the lock file are the two things that move
2+
# under this project without a commit of their own; each gets one grouped pull
3+
# request a week. uv, not pip: the pip ecosystem never updates uv.lock.
14
version: 2
25
updates:
3-
- package-ecosystem: "pip"
4-
directory: "/"
6+
- package-ecosystem: github-actions
7+
directory: /
58
schedule:
6-
interval: "weekly"
7-
day: "monday"
9+
interval: weekly
10+
day: monday
811
groups:
9-
dev-dependencies:
10-
dependency-type: "development"
11-
open-pull-requests-limit: 5
12+
actions:
13+
patterns: ["*"]
1214

13-
- package-ecosystem: "github-actions"
14-
directory: "/"
15+
- package-ecosystem: uv
16+
directory: /
1517
schedule:
16-
interval: "weekly"
17-
day: "monday"
18-
open-pull-requests-limit: 5
18+
interval: weekly
19+
day: monday
20+
groups:
21+
dev:
22+
dependency-type: development

template/.github/workflows/ci.yml.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Lint & type check
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@v7
1515
- uses: astral-sh/setup-uv@v7
1616
- run: uv sync --group dev --all-extras
1717
- run: uv run ruff check
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
python-version: ["{{ python_min_version }}", "3.12", "3.13"]
2929
steps:
30-
- uses: actions/checkout@v6
30+
- uses: actions/checkout@v7
3131
- uses: astral-sh/setup-uv@v7
3232
with:
3333
python-version: ${% raw %}{{ matrix.python-version }}{% endraw %}
@@ -45,7 +45,7 @@ jobs:
4545
needs: lint
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v6
48+
- uses: actions/checkout@v7
4949
- uses: astral-sh/setup-uv@v7
5050
- run: uv sync --group dev --all-extras
5151
- name: Run integration tests

template/.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@v7
1717
- uses: astral-sh/setup-uv@v7
1818
- run: uv sync --no-dev --group docs
1919
- run: cp CHANGELOG.md docs/changelog.md

template/.github/workflows/publish.yml.jinja

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
outputs:
2626
tag: ${% raw %}{{ steps.tag.outputs.tag }}{% endraw %}
2727
steps:
28-
- uses: actions/checkout@v6
28+
- uses: actions/checkout@v7
2929
with:
3030
ref: ${% raw %}{{ github.event_name == 'workflow_dispatch' && inputs.tag || github.event.workflow_run.head_sha }}{% endraw %}
3131
fetch-tags: true
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
environment: pypi
5757
steps:
58-
- uses: actions/checkout@v6
58+
- uses: actions/checkout@v7
5959
with:
6060
ref: ${% raw %}{{ needs.check.outputs.tag }}{% endraw %}
6161

@@ -69,4 +69,6 @@ jobs:
6969
echo "__version__ = \"$VERSION\" # x-release-please-version" > {{ package_name }}/__version__.py
7070

7171
- run: uv build
72-
- run: uv publish
72+
# --check-url: a run repeated after a failure skips what is already on the
73+
# index instead of failing on it.
74+
- run: uv publish --check-url https://pypi.org/simple/{{ project_slug }}/

0 commit comments

Comments
 (0)