@@ -172,6 +172,19 @@ jobs:
172172 with :
173173 python-version : ${{ matrix.python }}
174174
175+ - name : Install base Python requirements
176+ uses : brettcannon/pip-secure-install@92f400e3191171c1858cc0e0d9ac6320173fdb0c # v1.0.0
177+ with :
178+ requirements-file : ' "${{ env.special-working-directory-relative }}/requirements.txt"'
179+ options : ' -t "${{ env.special-working-directory-relative }}/python_files/lib/python" --no-cache-dir --implementation py'
180+
181+ - name : Install test requirements
182+ run : python -m pip install --upgrade -r build/test-requirements.txt
183+
184+ - name : Remove pytest-black for pre-release pytest
185+ if : matrix.pytest-version == 'pytest@pre-release'
186+ run : python -m pip uninstall -y pytest-black
187+
175188 - name : Install specific pytest version
176189 if : matrix.pytest-version == 'pytest@pre-release'
177190 run : |
@@ -184,14 +197,6 @@ jobs:
184197
185198 - name : Install specific pytest version
186199 run : python -m pytest --version
187- - name : Install base Python requirements
188- uses : brettcannon/pip-secure-install@92f400e3191171c1858cc0e0d9ac6320173fdb0c # v1.0.0
189- with :
190- requirements-file : ' "${{ env.special-working-directory-relative }}/requirements.txt"'
191- options : ' -t "${{ env.special-working-directory-relative }}/python_files/lib/python" --no-cache-dir --implementation py'
192-
193- - name : Install test requirements
194- run : python -m pip install --upgrade -r build/test-requirements.txt
195200
196201 - name : Run Python unit tests
197202 run : python python_files/tests/run_all.py
0 commit comments