-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1011 Bytes
/
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
name: chessdb_lib CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: Run yapf in diff mode and pylint.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint
uses: actions/setup-python@v2
with:
python-verion: 3.8
- name: Lint
run: |
make lint
- name: Upload pylint.txt
uses: actions/upload-artifact@v1
with:
name: pylint
path: pylint.txt
unittest-coverage:
name: Run unittest and generate code coverage report.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python 3.8 for unitttests.
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run unittests
run: |
make PLATFORM=ci test
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}