Skip to content

Commit 56af292

Browse files
authored
Use pip-install option from setup-python (#212)
1 parent 57c222a commit 56af292

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,8 @@ jobs:
5353
with:
5454
python-version: '3.12'
5555
cache: 'pip'
56-
cache-dependency-path: |
57-
requirements.txt
58-
59-
- name: Install dependencies
60-
run: |
61-
python3 -m pip install --upgrade pip
62-
python3 -m pip install -r requirements.txt
56+
cache-dependency-path: requirements.txt
57+
pip-install: -r requirements.txt
6358

6459
- name: Set version variables
6560
id: version
@@ -128,6 +123,7 @@ jobs:
128123
cache-dependency-path: |
129124
requirements.txt
130125
cpython/Doc/requirements.txt
126+
pip-install: -r requirements.txt -r cpython/Doc/requirements.txt
131127

132128
- name: Install Transifex CLI
133129
working-directory: /usr/local/bin
@@ -137,8 +133,6 @@ jobs:
137133
- name: Install dependencies
138134
run: |
139135
sudo apt update -y && sudo apt install gettext -y
140-
pip3 install --upgrade pip
141-
pip3 install -r requirements.txt -r cpython/Doc/requirements.txt
142136
143137
- name: Change Transifex project name if Python version != python-newest
144138
if: ${{ matrix.cpython_version != needs.trigger.outputs.current }}

.github/workflows/updpyver.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ jobs:
3838
python-version: '3'
3939
cache: 'pip'
4040
cache-dependency-path: 'requirements.txt'
41-
42-
- name: Install dependencies
43-
run: |
44-
pip3 install --upgrade pip
45-
pip3 install -r requirements.txt
41+
pip-install: -r requirements.txt
4642

4743
- name: Update versions.txt file
4844
run: |

0 commit comments

Comments
 (0)