@@ -120,7 +120,6 @@ jobs:
120120
121121 steps :
122122 - name : Install Git
123- if : matrix.clang == 10
124123 run : |
125124 apt-get update && apt-get install -y git --no-install-recommends
126125
@@ -140,27 +139,27 @@ jobs:
140139 run : >
141140 apt-get update && apt-get install -y python3-dev python3-pip python3-setuptools python3-wheel
142141 python3-numpy python3-scipy python3-matplotlib python3-requests python3-networkx
143- python3-pytest python3-pytest-cov python3-flaky
144- libomp-dev
142+ python3-pytest python3-pytest-cov python3-flaky python3-venv
145143 --no-install-recommends
146144
147145 - name : Prepare Python env
148146 run : |
149- python3 -m pip install -U pip setuptools wheel
150- python3 setup.py gen_reqfile --include-extras=test,azure-quantum,braket
147+ python3 -m venv venv
148+ ./venv/bin/python3 -m pip install -U pip setuptools wheel
149+ ./venv/bin/python3 setup.py gen_reqfile --include-extras=test,azure-quantum,braket
151150 cat requirements.txt
152- python3 -m pip install -r requirements.txt --prefer-binary
151+ ./venv/bin/ python3 -m pip install -r requirements.txt --prefer-binary
153152
154153 - name : Upgrade pybind11 and flaky
155- run : python3 -m pip install --upgrade pybind11 flaky --prefer-binary
154+ run : ./venv/bin/ python3 -m pip install --upgrade pybind11 flaky --prefer-binary
156155
157156 - name : Build and install package
158- run : python3 -m pip install -ve .[azure-quantum,braket,test]
157+ run : ./venv/bin/ python3 -m pip install -ve .[azure-quantum,braket,test]
159158
160159 - name : Pytest
161160 run : |
162161 echo 'backend: Agg' > matplotlibrc
163- python3 -m pytest -p no:warnings
162+ ./venv/bin/ python3 -m pytest -p no:warnings
164163
165164
166165 gcc :
@@ -192,26 +191,27 @@ jobs:
192191 run : >
193192 apt-get update && apt-get install -y python3-dev python3-pip python3-setuptools python3-wheel
194193 python3-numpy python3-scipy python3-matplotlib python3-requests python3-networkx
195- python3-pytest python3-pytest-cov python3-flaky
194+ python3-pytest python3-pytest-cov python3-flaky python3-venv
196195 --no-install-recommends
197196
198197 - name : Prepare Python env
199198 run : |
200- python3 -m pip install -U pip setuptools wheel
201- python3 setup.py gen_reqfile --include-extras=test,azure-quantum,braket
199+ python3 -m venv venv
200+ ./venv/bin/python3 -m pip install -U pip setuptools wheel
201+ ./venv/bin/python3 setup.py gen_reqfile --include-extras=test,azure-quantum,braket
202202 cat requirements.txt
203- python3 -m pip install -r requirements.txt --prefer-binary
203+ ./venv/bin/ python3 -m pip install -r requirements.txt --prefer-binary
204204
205205 - name : Upgrade pybind11 and flaky
206- run : python3 -m pip install --upgrade pybind11 flaky --prefer-binary
206+ run : ./venv/bin/ python3 -m pip install --upgrade pybind11 flaky --prefer-binary
207207
208208 - name : Build and install package
209- run : python3 -m pip install -ve .[azure-quantum,braket,test]
209+ run : ./venv/bin/ python3 -m pip install -ve .[azure-quantum,braket,test]
210210
211211 - name : Pytest
212212 run : |
213213 echo 'backend: Agg' > matplotlibrc
214- python3 -m pytest -p no:warnings
214+ ./venv/bin/ python3 -m pytest -p no:warnings
215215
216216
217217 # Testing on CentOS (manylinux uses a centos base, and this is an easy way
@@ -338,5 +338,6 @@ jobs:
338338 - name : Build docs
339339 run : python3 -m sphinx -b html docs docs/.build
340340
341- - name : Make SDist
342- run : python3 setup.py sdist
341+ # NB: disabling until setup.py is updated to remove any mention of distutils
342+ # - name: Make SDist
343+ # run: python3 setup.py sdist
0 commit comments