-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (39 loc) · 986 Bytes
/
ci.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
name: CI
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
branches: [ main ]
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: isort
run: python -m isort . --check --diff
- name: black
run: python -m black --check --diff .
- name: flake8
run: python -m flake8 .
- name: mypy
run: python -m mypy .
- uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
- name: tests
run: python -m unittest discover -s tests
- name: test-train-script
run: python -m unittest tests/integration_test_train.py