-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 1.26 KB
/
ci.yml
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
44
45
46
47
name: Test and style check
on:
pull_request:
push:
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install test dependencies.
run: pip3 install -U pre-commit
- name: Install hooks
run: pre-commit install
- name: Run hooks manually to check for style violations
run: pre-commit run --all-files
bash-unit-tests:
runs-on: ubuntu-20.04
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
with:
submodules: true
- name: Set git user name
# empty ident name (for <runner@fv-az200-232.z5vp5onzgpeubbrmro10dqbqjh.jx.internal.cloudapp.net>) not allowed
run: git config --global user.email "[email protected]"
- name: Set git user email
# empty ident name (for <runner@fv-az200-232.z5vp5onzgpeubbrmro10dqbqjh.jx.internal.cloudapp.net>) not allowed
run: git config --global user.name "kayobe-automation-github-workflow"
- name: Install hooks
run: test/unit.sh