Skip to content

Commit 028578f

Browse files
committed
On Win, inject poetry-dynamic-versioning into pipx
1 parent 4ebab86 commit 028578f

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-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

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
run: |
2828
pipx install poetry
2929
30-
# We install poetry-dynamic-versioning into pipx because the install by poetry 2.x
31-
# currently triggers a Windows issue https://github.com/pypa/installer/issues/260
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
3232
- name: Install poetry-dynamic-versioning
3333
if: runner.os == 'Windows'
3434
run:

.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)