-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (44 loc) · 1.06 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
name: CI
on:
push:
branches: [ "master" ]
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
make
- name: run unit tests
run: |
make test
- name: upload code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: htmlcov/
- name: run e2e tests
run: |
make test-e2e
lint:
runs-on: ubuntu-latest
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
# Setup
- uses: actions/checkout@v3
- uses: reviewdog/action-setup@v1
- name: build
run: |
make
# Lints
- name: run flake8
run: |
make flake8 2>&1 | # Removes ansi codes see https://github.com/reviewdog/errorformat/issues/51
reviewdog -f=flake8 \
-name="flake8" \
-reporter="github-check" \
-filter-mode="nofilter" \
-level="warning"