@@ -50,33 +50,13 @@ jobs:
5050
5151 steps :
5252 - uses : actions/checkout@v3
53- - name : Setup Poetry
54- run : |
55- pipx install poetry
56- poetry config virtualenvs.in-project true
57- - uses : actions/setup-python@v4
58- id : setup-python
53+ 5954 with :
6055 python-version : ${{ matrix.py }}
56+ additional-dependency-cache-key : ${{ matrix.qt }}
57+ poetry-install--only : github-actions,test,main
6158
62- - name : Cache ./.venv (poetry dependencies)
63- id : cache-venv
64- uses : actions/cache@v3
65- with :
66- path : .venv
67- key : " \
68- venv-\
69- ${{ runner.os }}-\
70- ${{ steps.setup-python.outputs.python-version }}-\
71- ${{ matrix.qt }}-\
72- ${{ hashFiles('**/poetry.lock') }}"
73-
74- - name : Install dependencies
75- if : steps.cache-venv.outputs.cache-hit != 'true'
76- run : poetry install --only github-actions,test,main
77-
78- - name : Install Qt dependencies
79- run : poetry run pip install -U ${{ matrix.qt }}
59+ - run : poetry run pip install -U ${{ matrix.qt }}
8060
8161 - name : Install Linux dependencies
8262 if : runner.os == 'Linux'
@@ -133,28 +113,10 @@ jobs:
133113
134114 steps :
135115 - uses : actions/checkout@v3
136- - name : Setup Poetry
137- run : |
138- pipx install poetry
139- poetry config virtualenvs.in-project true
140- - uses : actions/setup-python@v4
141- id : setup-python
116+ 142117 with :
143118 python-version : ' 3.11'
144-
145- - name : Cache ./.venv (poetry dependencies)
146- id : cache-venv
147- uses : actions/cache@v3
148- with :
149- path : .venv
150- key : " \
151- venv-without-qt\
152- ${{ runner.os }}-\
153- ${{ steps.setup-python.outputs.python-version }}-\
154- ${{ hashFiles('**/poetry.lock') }}"
155-
156- - run : poetry install --only github-actions,test,main
157- if : steps.cache-venv.outputs.cache-hit != 'true'
119+ poetry-install--only : ' github-actions,test,main'
158120
159121 - name : Run pytest without Qt lib
160122 run : |
@@ -180,25 +142,13 @@ jobs:
180142 runs-on : ubuntu-latest
181143 steps :
182144 - uses : actions/checkout@v3
183- - uses : actions/setup-python@v4
184- id : setup-python
145+ 185146 with :
186147 python-version : ' 3.11'
148+ poetry-install--only : main
149+ additional-dependency-cache-key : PyInstaller
187150
188- - name : Cache ./.venv (poetry dependencies)
189- id : cache-venv
190- uses : actions/cache@v3
191- with :
192- path : .venv
193- key : " \
194- venv-test-PyInstaller-\
195- ${{ steps.setup-python.outputs.python-version }}"
196-
197- - run : python -m venv .venv
198- if : steps.cache-venv.outputs.cache-hit != 'true'
199-
200- - name : Install Python dependencies
201- run : .venv/bin/python -m pip install -U . PyInstaller
151+ - run : poetry run pip install -U PyInstaller
202152
203153 - name : Make test file
204154 run : |
@@ -217,7 +167,7 @@ jobs:
217167
218168 - name : Build test app
219169 run : |
220- .venv/bin/ python -m PyInstaller -y --onefile \
170+ poetry run python -m PyInstaller -y --onefile \
221171 ${{ env.TEST_FILE_NAME }} \
222172 --name test_app \
223173 --distpath ./dist
0 commit comments