@@ -30,11 +30,13 @@ jobs:
30
30
name : " Template: ${{ matrix.python-version }} - ${{ matrix.os }}"
31
31
steps :
32
32
- uses : actions/checkout@v4
33
+ - name : Install poetry
34
+ run : pipx install poetry
33
35
- name : Set up Python
34
36
uses : actions/setup-python@v5
35
37
with :
38
+ cache : poetry
36
39
python-version : ${{ matrix.python-version }}
37
-
38
40
- name : Install Dependencies
39
41
run : poetry install
40
42
shell : bash
@@ -67,12 +69,11 @@ jobs:
67
69
steps :
68
70
- uses : actions/checkout@v4
69
71
- uses : actions/setup-python@v5
72
+ id : setup-python
70
73
with :
71
74
python-version : " 3.11"
72
- - uses : snok/install-poetry@v1
73
- - run : poetry install
74
75
- run : |
75
- poetry run copier copy \
76
+ pipx run copier copy \
76
77
. \
77
78
my-project \
78
79
--UNSAFE \
@@ -84,13 +85,14 @@ jobs:
84
85
--data 'open_source_license=MIT' \
85
86
${{ matrix.extra_options.value }} \
86
87
--defaults
87
- shell: bash
88
+ env:
89
+ PIPX_DEFAULT_PYTHON: ${{ steps.setup-python.outputs.python-path }}
88
90
- run : cat pyproject.toml
89
91
working-directory : my-project
90
- shell : bash
92
+ - run : pipx install poetry
93
+ env :
94
+ PIPX_DEFAULT_PYTHON : ${{ steps.setup-python.outputs.python-path }}
91
95
- run : poetry install --with docs
92
96
working-directory : my-project
93
- shell : bash
94
97
- run : ${{ matrix.script.run }}
95
98
working-directory : my-project/${{ matrix.script.dir }}
96
- shell : bash
0 commit comments