I'm trying to setup unit tests in Bitbucket using the following bitbucket-pipelines.yml
image: python:<span>3.7</span><span>.3</span>
pipelines:
default:
- step:
caches:
- pip
script: <span># Modify the commands below to build your repository.</span>
- pip3 install --upgrade pip setuptools wheel
- pip3 install -r requirements.txt
- step:
script:
- python3 -m unittest discover -vp <span>'Test*.py'</span>
The file requirements.txt is the following:
tensorflow==<span>2.4</span><span>.1</span>
Keras==<span>2.4</span><span>.3</span>
pandas==<span>1.1</span><span>.3</span>
requests==<span>2.24</span><span>.0</span>
matplotlib==<span>3.3</span><span>.2</span>
numpy==<span>1.19</span><span>.2</span>
numpy is present in the requirements but when it runs the unit tests, I get the following error:
<span>import</span> numpy <span>as</span> np
ModuleNotFoundError: No module named <span>'numpy'</span>