Skip to content

Commit 8bf5ecf

Browse files
authored
Bump version to Python 3.12
And pin GitHub Actions version, so dependabot can update them
1 parent 93b01be commit 8bf5ecf

File tree

3 files changed

+38
-37
lines changed

3 files changed

+38
-37
lines changed

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
LANGUAGE ?= pt_BR
44

55
# Branch used in the project and in CPython
6-
BRANCH := 3.11
6+
BRANCH := 3.12
77

88
############################
99
# Environment variables for 'merge' target
@@ -13,13 +13,13 @@ BRANCH := 3.11
1313
# Versions in this variable will have their translation replaced with changes
1414
# in currently active version being translated. These will have pomerge's
1515
# --overwrite flag set.
16-
BUGFIXBRANCH ?= 3.10
16+
BUGFIXBRANCH ?= 3.11
1717

1818
# Version(s) that are considered security fixes or EOL. Let's make them more
1919
# stable, with more predictable state. These versions will not have translated
2020
# strings replaced with translations update. These will have pomerge's
2121
# --no-overwrite flag set.
22-
OLDERBRANCHES ?= 3.9 3.8 3.7 3.6 2.7
22+
OLDERBRANCHES ?= 3.10 3.9 3.8 3.7 3.6 2.7
2323
#
2424
############################
2525

.github/workflows/check.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
default: true
1414
pull_request:
1515
branches:
16-
- '3.11'
16+
- '3.12'
1717
paths:
1818
- '.github/workflows/check.yml'
1919
- '.github/prepmsg.sh'
@@ -40,18 +40,18 @@ jobs:
4040
name: Build translated docs
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v3.5.2
4444
with:
4545
persist-credentials: false
4646

4747
- name: Download PO files (if called)
4848
if: github.event.inputs.called == true
49-
uses: actions/download-artifact@v3
49+
uses: actions/download-artifact@v3.0.2
5050
with:
5151
name: translations
5252

5353
- name: Set up Python 3
54-
uses: actions/setup-python@v4
54+
uses: actions/setup-python@v4.6.1
5555
with:
5656
python-version: '3'
5757

@@ -64,14 +64,14 @@ jobs:
6464
6565
- name: Upload artifact - docs
6666
if: steps.build.outcome == 'success'
67-
uses: actions/upload-artifact@v3
67+
uses: actions/upload-artifact@v3.1.2
6868
with:
6969
name: docs
7070
path: cpython/Doc/build/html
7171

7272
- name: Upload artifact - log files
7373
if: always()
74-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v3.1.2
7575
with:
7676
name: build-logs
7777
path: logs/*
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Notify via Telegram
8989
if: steps.prepare.outcome == 'success'
90-
uses: appleboy/telegram-action@master
90+
uses: appleboy/telegram-action@0.1.1
9191
with:
9292
to: ${{ secrets.TELEGRAM_TO }}
9393
token: ${{ secrets.TELEGRAM_TOKEN }}
@@ -101,18 +101,18 @@ jobs:
101101
name: Lint translations
102102
runs-on: ubuntu-latest
103103
steps:
104-
- uses: actions/checkout@v3
104+
- uses: actions/checkout@v3.5.2
105105
with:
106106
persist-credentials: false
107107

108108
- name: Download PO files (if called)
109109
if: github.event.inputs.called == true
110-
uses: actions/download-artifact@v3
110+
uses: actions/download-artifact@v3.0.2
111111
with:
112112
name: translations
113113

114114
- name: Set up Python 3
115-
uses: actions/setup-python@v4
115+
uses: actions/setup-python@v4.6.1
116116
with:
117117
python-version: '3'
118118

@@ -123,7 +123,7 @@ jobs:
123123
make lint
124124
125125
- name: Upload artifact - log files
126-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@v3.1.2
127127
with:
128128
name: lint-logs
129129
path: logs/*
@@ -139,7 +139,7 @@ jobs:
139139
#
140140
#- name: Notify via Telegram
141141
# if: step.prepare.outcome == 'success'
142-
# uses: appleboy/telegram-action@master
142+
# uses: appleboy/telegram-action@0.1.1
143143
# with:
144144
# to: ${{ secrets.TELEGRAM_TO }}
145145
# token: ${{ secrets.TELEGRAM_TOKEN }}
@@ -153,18 +153,18 @@ jobs:
153153
name: Spell check translations
154154
runs-on: ubuntu-latest
155155
steps:
156-
- uses: actions/checkout@v3
156+
- uses: actions/checkout@v3.5.2
157157
with:
158158
persist-credentials: false
159159

160160
- name: Download PO files (if called)
161161
if: github.event.inputs.called == true
162-
uses: actions/download-artifact@v3
162+
uses: actions/download-artifact@v3.0.2
163163
with:
164164
name: translations
165165

166166
- name: Set up Python 3
167-
uses: actions/setup-python@v4
167+
uses: actions/setup-python@v4.6.1
168168
with:
169169
python-version: '3'
170170

@@ -174,7 +174,7 @@ jobs:
174174
run: make spell
175175

176176
- name: Upload artifact - log files
177-
uses: actions/upload-artifact@v3
177+
uses: actions/upload-artifact@v3.1.2
178178
with:
179179
name: pospell-logs
180180
path: logs/*
@@ -186,18 +186,18 @@ jobs:
186186
runs-on: ubuntu-latest
187187
steps:
188188
- name: Check out ${{ github.repository }}
189-
uses: actions/checkout@v3
189+
uses: actions/checkout@v3.5.2
190190
with:
191191
persist-credentials: false
192192

193193
- name: Download PO files (if called)
194194
if: github.event.inputs.called == true
195-
uses: actions/download-artifact@v3
195+
uses: actions/download-artifact@v3.0.2
196196
with:
197197
name: translations
198198

199199
- name: Set up Python 3
200-
uses: actions/setup-python@v4
200+
uses: actions/setup-python@v4.6.1
201201
with:
202202
python-version: '3'
203203

@@ -213,7 +213,7 @@ jobs:
213213
powrap compendium.po
214214
215215
- name: Upload artifact
216-
uses: actions/upload-artifact@v3
216+
uses: actions/upload-artifact@v3.1.2
217217
with:
218218
name: compendium
219219
path: compendium.po

.github/workflows/update.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@ on:
77
description: CPython branch to use
88
required: false
99
type: string
10-
default: '3.11'
10+
default: '3.12'
1111
pull_request:
1212
paths:
1313
- '.github/workflows/update.yml'
1414
- 'Makefile'
1515
- 'requirements.txt'
1616
branches:
17-
- '3.11'
17+
- '3.12'
1818
push:
1919
paths:
2020
- '.github/workflows/update.yml'
2121
- 'Makefile'
2222
- 'requirements.txt'
2323
branches:
24+
- '3.12'
2425
- '3.11'
2526
- '3.10'
2627
- '3.9'
@@ -39,7 +40,7 @@ jobs:
3940
runs-on: ubuntu-latest
4041
steps:
4142
- name: Check out ${{ github.repository }}
42-
uses: actions/checkout@v3
43+
uses: actions/checkout@v3.5.2
4344

4445
- name: Get branch name on push or schedule
4546
if: |
@@ -56,14 +57,14 @@ jobs:
5657
run: echo "BRANCH=${{ github.event.inputs.BRANCH }}" >> $GITHUB_ENV
5758

5859
- name: Check out CPython
59-
uses: actions/checkout@v3
60+
uses: actions/checkout@v3.5.2
6061
with:
6162
repository: python/cpython
6263
ref: ${{ env.BRANCH }}
6364
path: cpython
6465

6566
- name: Set up Python 3
66-
uses: actions/setup-python@v4
67+
uses: actions/setup-python@v4.6.1
6768
with:
6869
python-version: '3'
6970
cache: 'pip'
@@ -84,7 +85,7 @@ jobs:
8485
TX_TOKEN: ${{ secrets.TX_TOKEN }}
8586

8687
- name: Upload artifact - po files
87-
uses: actions/upload-artifact@v3
88+
uses: actions/upload-artifact@v3.1.2
8889
with:
8990
name: translations
9091
path: |
@@ -94,7 +95,7 @@ jobs:
9495
9596
- name: Upload artifact - log files
9697
if: always()
97-
uses: actions/upload-artifact@v3
98+
uses: actions/upload-artifact@v3.1.2
9899
with:
99100
name: pull-logs
100101
path: |
@@ -111,10 +112,10 @@ jobs:
111112
contents: write
112113
steps:
113114
- name: Check out ${{ github.repository }}
114-
uses: actions/checkout@v3
115+
uses: actions/checkout@v3.5.2
115116

116117
- name: Download PO files
117-
uses: actions/download-artifact@v3
118+
uses: actions/download-artifact@v3.0.2
118119
with:
119120
name: translations
120121

@@ -150,9 +151,9 @@ jobs:
150151
fail-fast: false
151152
max-parallel: 3
152153
matrix:
153-
branch: ['3.10', '3.9', '3.8', '3.7', '3.6', '2.7']
154+
branch: ['3.11', '3.10', '3.9', '3.8', '3.7', '3.6', '2.7']
154155
include:
155-
- branch: 3.10
156+
- branch: 3.11
156157
overwrite: true
157158
steps:
158159
- name: Get branch name on push or schedule
@@ -170,19 +171,19 @@ jobs:
170171
run: echo "CURRENT_BRANCH=${{ github.event.inputs.BRANCH }}" >> $GITHUB_ENV
171172

172173
- name: Check out source branch (${{ env.CURRENT_BRANCH }})
173-
uses: actions/checkout@v3
174+
uses: actions/checkout@v3.5.2
174175
with:
175176
path: ${{ env.CURRENT_BRANCH }}
176177
persist-credentials: false
177178

178179
- name: Check out target branch (${{ matrix.branch }})
179-
uses: actions/checkout@v3
180+
uses: actions/checkout@v3.5.2
180181
with:
181182
ref: ${{ matrix.branch }}
182183
path: ${{ matrix.branch }}
183184

184185
- name: Set up Python 3
185-
uses: actions/setup-python@v4
186+
uses: actions/setup-python@v4.6.1
186187
with:
187188
python-version: '3'
188189
cache: 'pip'

0 commit comments

Comments
 (0)