Skip to content

Commit d5c11db

Browse files
authored
fix: refactor CI/CD workflow updating poetry config
Removed redundant pip version installation steps and adjusted poetry configuration.
1 parent 02fcfa2 commit d5c11db

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/cicd.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ jobs:
2121
with:
2222
python-version: "3.10"
2323

24-
- name: Pip version
25-
run: python -m pip install "pip<26"
26-
2724
- name: Install and configure poetry
25+
env:
26+
POETRY_INSTALLER_UPGRADE: "false"
2827
run: |
28+
python -m pip install "pip<26"
2929
pip install poetry
30-
poetry config virtualenvs.create false
3130
poetry install
3231
3332
- name: Install dependencies
@@ -49,13 +48,12 @@ jobs:
4948
with:
5049
python-version: "3.9"
5150

52-
- name: Pip version
53-
run: python -m pip install "pip<26"
54-
5551
- name: Install and configure poetry
52+
env:
53+
POETRY_INSTALLER_UPGRADE: "false"
5654
run: |
55+
python -m pip install "pip<26"
5756
pip install poetry
58-
poetry config virtualenvs.create false
5957
poetry install
6058
6159
- name: Install dependencies
@@ -77,12 +75,13 @@ jobs:
7775
with:
7876
python-version: "3.10"
7977

80-
- name: Pip version
81-
run: python -m pip install "pip<26"
82-
83-
- name: Install dependencies
78+
- name: Install and configure poetry
79+
env:
80+
POETRY_INSTALLER_UPGRADE: "false"
8481
run: |
82+
python -m pip install "pip<26"
8583
pip install poetry
84+
poetry install
8685
8786
- name: Build package
8887
run: |

0 commit comments

Comments
 (0)