-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (37 loc) · 1.17 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
name: Continuous integration
on: [pull_request, push]
#pull_request:
#push:
#schedule:
# - cron: '0 2 * * *' # run at 2 AM UTC
jobs:
Lint_and_test_check:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
#- name: Install dependencies
# run:
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# make install
#- name: Test with tox
# run: tox -e py
#- name: Bandit Check
# uses: jpetrucciani/[email protected]
- name: Install flake8
run: pip install flake8
- name: Flake8 Check
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=B,C,E,F,W,T4,B9 --ignore=E203,E266,E501,W503,F403,W605,C901,E722,E731,E741 --show-source --statistics
#uses: suo/flake8-github-action@v1
#with:
# checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name