@@ -130,10 +130,14 @@ jobs:
130
130
python-version : ${{ matrix.python-version }}
131
131
132
132
- if : matrix.python-version == 'system'
133
- run : sudo ln -s `which python3` /usr/local/bin/python
133
+ run : |
134
+ sudo ln -s `which python3` /usr/local/bin/python
135
+ echo PIP_INSTALL_OPTS=--break-system-packages >> $GITHUB_ENV
136
+
137
+ - if : matrix.python-version != 'system'
138
+ run : python -m pip install --upgrade pip==22.1.2
134
139
135
- - run : python -m pip install --upgrade pip==22.1.2
136
- - run : pip install "build<1.1" wheel
140
+ - run : python -m pip install $PIP_INSTALL_OPTS "build<1.1" wheel
137
141
- run : cmake --version
138
142
- run : |
139
143
unset CI
@@ -183,23 +187,23 @@ jobs:
183
187
- env :
184
188
SYSTEM_VERSION_COMPAT : 0
185
189
run : |
186
- pip debug --verbose
187
- for i in dist/*.whl; do pip install $i[tests]; done;
188
- pip show --verbose PyPartMC
190
+ python -m pip debug --verbose
191
+ for i in dist/*.whl; do python -m pip install $PIP_INSTALL_OPTS $i[tests]; done;
192
+ python -m pip show --verbose PyPartMC
189
193
190
194
# ## make sure PyPartMC is not picked up from a local folder
191
195
- run : |
192
196
cd tests
193
197
python -c "import PyPartMC"
194
- pytest --durations=10 -v -s -We -p no:unraisableexception .
198
+ python -m pytest --durations=10 -v -s -We -p no:unraisableexception .
195
199
cd ..
196
200
197
201
- if : matrix.python-version != '3.7'
198
202
run : |
199
- pip install -r gitmodules/devops_tests/requirements.txt
203
+ python -m pip install $PIP_INSTALL_OPTS -r gitmodules/devops_tests/requirements.txt
200
204
ex -sc 'g/^PyPartMC/d' -cx .binder/requirements.txt
201
- pip install -r .binder/requirements.txt
202
- GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} pytest --durations=10 -v -s -We -p no:unraisableexception gitmodules/devops_tests
205
+ python -m pip install $PIP_INSTALL_OPTS -r .binder/requirements.txt
206
+ GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python -m pytest --durations=10 -v -s -We -p no:unraisableexception gitmodules/devops_tests
203
207
204
208
# ## uncomment to gain ssh access in case of failure
205
209
# - if: ${{ failure() }}
0 commit comments