Skip to content

Commit 41c9ec6

Browse files
committed
chore(deps): bump commit-check from 2.19.5 to 2.20.0
1 parent 6a63e33 commit 41c9ec6

4 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
# The floor and the newest. 3.10 is the real floor: main.py annotates
18-
# with `str | None` and has no `from __future__ import annotations`, so
19-
# the annotation is evaluated at def time, and main_test.py uses
20-
# parenthesized context managers. Both are 3.10+.
17+
# The floor and the newest. 3.11 is the real floor: the pinned
18+
# commit-check (2.20.0 and later) requires it, and the action refuses
19+
# an older python3 before installing anything.
2120
#
2221
# The action itself runs on whatever python3 the runner ships, so the
2322
# in-between versions add little here — unlike commit-check, which is a
2423
# published package and tests every one.
25-
py: ['3.10', '3.14']
24+
py: ['3.11', '3.14']
2625
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
2726
runs-on: ${{ matrix.os }}
2827
steps:
@@ -54,8 +53,8 @@ jobs:
5453
persist-credentials: false
5554
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
5655
with:
57-
# 3.10 is the real floor, see the test job
58-
python-version: "3.10"
56+
# 3.11 is the real floor, see the test job
57+
python-version: "3.11"
5958
- name: Install dependencies
6059
run: |
6160
pip install -r requirements.txt

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ fails when a contributor did not install the hook.
256256

257257
The action is a composite step and uses what the runner already has:
258258

259-
- **Python 3.10 or newer** on `PATH` (`python3`, or `python` on Windows). No
260-
`setup-python` step is needed on GitHub-hosted runners. Everything the action
259+
- **Python 3.11 or newer** on `PATH` (`python3`, or `python` on Windows). The
260+
`*-latest` GitHub-hosted runners already have it. `ubuntu-22.04` ships 3.10,
261+
so add `actions/setup-python` with `python-version: "3.11"` (or newer) before
262+
this step there. Everything the action
261263
installs goes under `$RUNNER_TEMP`, never into your checkout.
262264
- **`gh` CLI** — used to verify the build-provenance attestation of the
263265
`commit-check` wheel before installing it. Present on GitHub-hosted images;

‎action.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ runs:
6363
PYTHON_CMD="python3"
6464
fi
6565
66+
# The pinned commit-check needs Python 3.11+. Say so here: on an older
67+
# python3, pip would only report that no matching version exists.
68+
if ! $PYTHON_CMD -c 'import sys; sys.exit(sys.version_info < (3, 11))'; then
69+
echo "::error::commit-check-action needs Python 3.11 or newer on PATH, found $($PYTHON_CMD --version 2>&1). Add actions/setup-python with python-version 3.11 or newer before this step."
70+
exit 1
71+
fi
72+
6673
# Everything the action installs lives under $RUNNER_TEMP, never in the
6774
# caller's checkout: a later `git status`, linter or upload-artifact step
6875
# must not see our venv or wheels.

‎requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install commit-check CLI
22
# For details please see: https://github.com/commit-check/commit-check
3-
commit-check==2.19.5
3+
commit-check==2.20.0
44
# Interact with the GitHub API.
55
PyGithub==2.10.0

0 commit comments

Comments
 (0)