bitbucket also uses docker to build its pipelines and i tried to build the containers as similar as possible. both use the same image and have the same execution steps.
bitbucket-pipelines.yml
image: python:<span>3.10</span> pipelines: default: - step: name: Test caches: - pip script: - pip install -r requirements.txt - PYTHONPATH=src pytest
Dockerfile
FROM python:<span>3.10</span> WORKDIR /workspace COPY requirements.txt /workspace/requirements.txt RUN pip install /workspace/requirements.txt COPY src /workspace/src
when i run the tests locally, i do this directly via the console. not in the dockerfile.
PYTHONPATH=src pytest
What is causing the segmentation fault?
G'day, @jgfhnw
Welcome to the community!
May I suggest when testing locally to reproduce the exact environment similar to Bitbucket cloud, please follow the following documentation:
Troubleshoot Bitbucket pipeline locally
With that in mind, the error sounds similar to what is being discussed here, so could you review them and try the suggested workaround in the threads to see if it helps your issue?
Let me know how it goes.
Regards,Syahrul
It looks like you're new here. Sign in or register to get started.