Skip to content

Commit d3230e5

Browse files
committed
Update actions versions
One of the reason is that some of them use node.js 12, which is now deprecated. Actions is displaying warnings about it. v4 of setup-python is particular useful because it introduces package caching, which reduces the time of workflow run.
1 parent 5a0df79 commit d3230e5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/update.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,20 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out ${{ github.repository }}
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2727
- name: Check out CPython
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2929
with:
3030
repository: python/cpython
3131
persist-credentials: false
3232
ref: ${{ env.CPYTHON_BRANCH }}
3333
path: cpython
3434
- name: Set up Python 3.9
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v4
3636
with:
3737
python-version: '3.9'
38+
cache: 'pip'
39+
cache-dependency-path: '**/requirements*.txt'
3840
- name: Install Transifex CLI
3941
run: |
4042
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
@@ -83,14 +85,20 @@ jobs:
8385
run:
8486
echo "CURRENT_BRANCH=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
8587
- name: Check out source branch (${{ env.CURRENT_BRANCH }})
86-
uses: actions/checkout@v1
88+
uses: actions/checkout@v3
8789
with:
8890
path: ${{ env.CURRENT_BRANCH }}
8991
- name: Check out target branch (${{ matrix.branch }})
90-
uses: actions/checkout@v2
92+
uses: actions/checkout@v3
9193
with:
9294
ref: ${{ matrix.branch }}
9395
path: ${{ matrix.branch }}
96+
- name: Set up Python 3.9
97+
uses: actions/setup-python@v4
98+
with:
99+
python-version: '3.9'
100+
cache: 'pip'
101+
cache-dependency-path: '**/requirements*.txt'
94102
- name: Install dependencies
95103
run: |
96104
sudo apt update -y && sudo apt install gettext -y

0 commit comments

Comments
 (0)