-
Notifications
You must be signed in to change notification settings - Fork 4
/
cloudbuild.yaml
37 lines (32 loc) · 1008 Bytes
/
cloudbuild.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
steps:
- id: "install dependencies"
name: python:3.9
entrypoint: pip
args: ["install", "-r", "requirements.txt", "--user"]
- id: "check formatting"
name: python:3.9
entrypoint: python3
args: ["-m", "black", ".", "--check"]
waitFor: ["install dependencies"]
- id: "check linting"
name: python:3.9
entrypoint: python3
args: ["-m", "flake8", "--count", "."]
waitFor: ["install dependencies"]
- id: "check unused imports"
name: python:3.9
entrypoint: python3
args: ["-m", "autoflake", "-r", "--remove-all-unused-imports", "--check", "."]
waitFor: ["install dependencies"]
- id: "check import sorting"
name: python:3.9
entrypoint: python3
args: ["-m", "isort", "--check-only", "--profile=black", "."]
waitFor: ["install dependencies"]
- id: "run unit tests"
name: python:3.9
entrypoint: python3
env:
- "PYTHONPATH=."
args: ["td2bq_mapper/tests/test_td2bq.py"]
waitFor: ["install dependencies"]