At the end of the docs on testing your cloud function there is a section on CI/CD. However, the only example they give is for node. I've been trying to do something with python 3.7 to no avail.
I set up a trigger for each time I push to a Google Source Cloud repository. Its a multifunction project
├── actions
│ ├── action.json
│ └── main.py
├── cloudbuild.yaml
├── Dockerfile
├── graph
│ ├── main.py
│ └── requirements.txt
└── testing
├── test_actions.py
└── test_graph.py
I've tried the example to make a custom build.
here is my cloudbuild.yml:
steps:
- name: 'gcr.io/momentum-360/pytest'
Here is my Dockerfile:
FROM python:3.7
COPY . /
WORKDIR /
RUN pip install -r graph/requirements.txt
RUN pip install pytest
ENTRYPOINT ["pytest"]
I'm getting the following error when I run it in the cloud build environment (not locally):
"Missing or insufficient permissions.","grpc_status":7}"
E >
The above exception was the direct cause of the following exception:
testing/test_graph.py:7: in <module>
from graph import main
which means I don't have enough permission to read my own files? I'm not sure I'm doing this right at all.