-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.03 KB
/
on_push.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: CI pipeline
on:
push:
branches:
- '**'
- '!main'
jobs:
ci-pipeline:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies and project in dev mode
run: |
pip install -r requirements-dev.txt
pip install -e .
- name: Run black
run: |
echo "Make sure your code has style"
black --line-length 79 ./chalicelib/*.py
- name: Run lint
continue-on-error: true
run: |
echo "Make sure your code is of quality"
pylint ./chalicelib/ --disable=import-error,line-too-long,too-many-arguments,too-few-public-methods,missing-module-docstring,R0801,C0103
- name: Run tests
run: |
echo "Run all tests"
pytest tests/*.py