- My bitbucket-pipeline.yml file is as follows:
image: python:3.9pipelines:
branches:
master:
- step:
script:
- pip install requirements.txt
- python $BITBUCKET_CLONE_DIR/Folder3/Sub Folder 1/run-test.py
It is building Python docker and installing all the requirements.
Issue is when it's trying to access a module in my repo while running tests.
Repo structure is like,
Repo_name:
-Folder 1
-Folder 2
-Folder 3
-Sub Folder 1
-run-test.py
So whenever run-test.py file tries to access or import Folder1 or Folder 2, I am getting Module not found error.
I am using $BITBUCKET_CLONE_DIR variable also before run-test.py file, so that it will identify the path.
I could see that it's cloning the repo to BITBUCKET_CLONE_DIR path
Is there any way to set the path in pipelines.yml file so that it would find path for all files and work.