Skip to content

Commit 26a67af

Browse files
authored
Update GitHub Actions and pre-commit (#183)
1 parent 00dd4d7 commit 26a67af

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

.github/workflows/source-and-docs-release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ env:
4545

4646
jobs:
4747
verify-input:
48-
runs-on: ubuntu-22.04
48+
runs-on: ubuntu-24.04
4949
outputs:
5050
# Needed because env vars are not available in the build-docs check below
5151
cpython_release: ${{ env.CPYTHON_RELEASE }}
@@ -57,7 +57,7 @@ jobs:
5757
echo "cpython_release: $CPYTHON_RELEASE"
5858
5959
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
60-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
60+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6161
with:
6262
repository: "${{ env.GIT_REMOTE }}/cpython"
6363
ref: "v${{ env.CPYTHON_RELEASE }}"
@@ -71,22 +71,22 @@ jobs:
7171
fi
7272
7373
build-source:
74-
runs-on: ubuntu-22.04
74+
runs-on: ubuntu-24.04
7575
needs:
7676
- verify-input
7777
steps:
7878
- name: "Checkout python/release-tools"
79-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
79+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8080

8181
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
82-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
82+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8383
with:
8484
repository: "${{ env.GIT_REMOTE }}/cpython"
8585
ref: "v${{ env.CPYTHON_RELEASE }}"
8686
path: "cpython"
8787

8888
- name: "Setup Python"
89-
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
89+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
9090
with:
9191
python-version: 3.11
9292

@@ -101,28 +101,28 @@ jobs:
101101
python ../release.py --export "$CPYTHON_RELEASE" --skip-docs
102102
103103
- name: "Upload the source artifacts"
104-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
104+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
105105
with:
106106
name: source
107107
path: |
108108
cpython/${{ env.CPYTHON_RELEASE }}/src
109109
110110
build-docs:
111-
runs-on: ubuntu-22.04
111+
runs-on: ubuntu-24.04
112112
needs:
113113
- verify-input
114114

115115
# Docs aren't built for alpha or beta releases.
116116
if: (!(contains(needs.verify-input.outputs.cpython_release, 'a') || contains(needs.verify-input.outputs.cpython_release, 'b')))
117117
steps:
118118
- name: "Checkout ${{ env.GIT_REMOTE }}/cpython"
119-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
119+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
120120
with:
121121
repository: "${{ env.GIT_REMOTE }}/cpython"
122122
ref: "v${{ env.CPYTHON_RELEASE }}"
123123

124124
- name: "Setup Python"
125-
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
125+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
126126
with:
127127
python-version: 3.11
128128

@@ -143,14 +143,14 @@ jobs:
143143
SPHINXOPTS="-j10" make dist
144144
145145
- name: "Upload the docs artifacts"
146-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
146+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
147147
with:
148148
name: docs
149149
path: |
150150
Doc/dist/
151151
152152
test-source:
153-
runs-on: ubuntu-22.04
153+
runs-on: ubuntu-24.04
154154
needs:
155155
- build-source
156156
steps:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
name: "Tests"
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1515
with:
1616
python-version: 3.x
1717
cache: pip

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.3.5
3+
rev: v0.7.1
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.4.2
9+
rev: 24.10.0
1010
hooks:
1111
- id: black
1212

1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.6.0
14+
rev: v5.0.0
1515
hooks:
1616
- id: check-added-large-files
1717
- id: check-case-conflict
@@ -25,28 +25,28 @@ repos:
2525
- id: trailing-whitespace
2626

2727
- repo: https://github.com/python-jsonschema/check-jsonschema
28-
rev: 0.28.1
28+
rev: 0.29.4
2929
hooks:
3030
- id: check-dependabot
3131
- id: check-github-workflows
3232

3333
- repo: https://github.com/rhysd/actionlint
34-
rev: v1.6.27
34+
rev: v1.7.3
3535
hooks:
3636
- id: actionlint
3737

3838
- repo: https://github.com/tox-dev/pyproject-fmt
39-
rev: 2.1.3
39+
rev: v2.4.3
4040
hooks:
4141
- id: pyproject-fmt
4242

4343
- repo: https://github.com/abravalheri/validate-pyproject
44-
rev: v0.18
44+
rev: v0.22
4545
hooks:
4646
- id: validate-pyproject
4747

4848
- repo: https://github.com/tox-dev/tox-ini-fmt
49-
rev: 1.3.1
49+
rev: 1.4.1
5050
hooks:
5151
- id: tox-ini-fmt
5252

tests/test_add_to_pydotorg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
os.environ["AUTH_INFO"] = "test_username:test_api_key"
66

7-
import add_to_pydotorg # noqa: E402
7+
import add_to_pydotorg
88

99

1010
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)