Skip to content

Commit c3d474b

Browse files
committed
On Win, inject poetry-dynamic-versioning into pipx
1 parent 7a93f04 commit c3d474b

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.github/workflows/check-dependencies.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
- name: Install Poetry
2929
run: pipx install poetry
3030

31+
# We install poetry-dynamic-versioning into pipx because the automatic installallation
32+
# by poetry 2.x triggers a Windows issue https://github.com/pypa/installer/issues/260
33+
- name: Install poetry-dynamic-versioning
34+
if: runner.os == 'Windows'
35+
run:
36+
pipx inject poetry poetry-dynamic-versioning
37+
3138
#----------------------------------------------
3239
# check-out repo and set-up python
3340
#----------------------------------------------

.github/workflows/main.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ jobs:
2424
# install poetry
2525
#----------------------------------------------
2626
- name: Install Poetry
27-
run: pipx install poetry
28-
27+
run: |
28+
pipx install poetry
29+
30+
# We install poetry-dynamic-versioning into pipx because the automatic installallation
31+
# by poetry 2.x triggers a Windows issue https://github.com/pypa/installer/issues/260
32+
- name: Install poetry-dynamic-versioning
33+
if: runner.os == 'Windows'
34+
run:
35+
pipx inject poetry poetry-dynamic-versioning
36+
2937
#----------------------------------------------
3038
# check-out repo and set-up python
3139
#----------------------------------------------

.github/workflows/test-upstream.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
- name: Install poetry
5656
run: pipx install poetry
5757

58+
# We install poetry-dynamic-versioning into pipx because the automatic installallation
59+
# by poetry 2.x triggers a Windows issue https://github.com/pypa/installer/issues/260
60+
- name: Install poetry-dynamic-versioning
61+
if: runner.os == 'Windows'
62+
run:
63+
pipx inject poetry poetry-dynamic-versioning
64+
5865
- name: Load cached venv
5966
id: cached-poetry-dependencies
6067
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57

0 commit comments

Comments
 (0)