Skip to content

Commit 10c498a

Browse files
authored
Merge pull request #2025 from PyCQA/ci/add-release-workflow
Pin versions on workflows
2 parents d15f363 + 5ab2fb7 commit 10c498a

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.github/workflows/constraints.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pip==22.3.1
2+
poetry==1.2.2
3+
virtualenv==20.17.1

.github/workflows/integration.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.8"]
10+
python-version: ["3.9"]
1111

1212
steps:
1313
- uses: actions/checkout@v2
@@ -25,11 +25,21 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28-
- name: Install dependencies
28+
- name: Upgrade pip
29+
run: |
30+
pip install --constraint=.github/workflows/constraints.txt pip
31+
pip --version
32+
33+
- name: Install Poetry
2934
run: |
3035
python -m pip install --upgrade pip
36+
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
3137
python -m pip install --upgrade poetry
38+
poetry --version
3239
poetry install
3340
41+
- name: Install dependencies
42+
run: poetry install
43+
3444
- name: Test integration
3545
run: ./scripts/test_integration.sh

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.8"]
10+
python-version: ["3.9"]
1111

1212
steps:
1313
- uses: actions/checkout@v2

.github/workflows/test.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,18 @@ jobs:
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050

51-
- name: Install poetry
51+
- name: Upgrade pip
52+
run: |
53+
pip install --constraint=.github/workflows/constraints.txt pip
54+
pip --version
55+
56+
- name: Install Poetry
5257
run: |
5358
python -m pip install --upgrade pip
59+
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
5460
python -m pip install --upgrade poetry
61+
poetry --version
62+
poetry install
5563
5664
- name: Install dependencies
5765
run: poetry install

0 commit comments

Comments
 (0)