-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudtest.yaml
43 lines (43 loc) · 888 Bytes
/
cloudtest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
steps:
- id: venv
name: gcr.io/$PROJECT_ID/python-cloudbuild
waitFor:
- "-"
entrypoint: /bin/bash
args:
- "-c"
- "virtualenv /workspace/venv"
- id: python_packages
name: gcr.io/$PROJECT_ID/python-cloudbuild
waitFor:
- venv
entrypoint: venv/bin/pip
args:
- install
- "-q"
- "-r"
- requirements.txt
- id: pylint
name: gcr.io/$PROJECT_ID/python-cloudbuild
waitFor:
- python_packages
entrypoint: venv/bin/pylint
args:
- "src"
- "tests"
- id: black
name: gcr.io/$PROJECT_ID/python-cloudbuild
waitFor:
- python_packages
entrypoint: venv/bin/black
args:
- "--check"
- src
- tests
- id: pytest
name: gcr.io/$PROJECT_ID/python-cloudbuild
waitFor:
- python_packages
entrypoint: venv/bin/pytest
args:
- -vv