File tree Expand file tree Collapse file tree 3 files changed +31
-8
lines changed
Expand file tree Collapse file tree 3 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,40 @@ jobs:
1919 uses : actions/setup-python@v2
2020 with :
2121 python-version : ${{ matrix.python-version }}
22-
22+ - uses : actions/cache@v2
23+ with :
24+ path : ~/.cache/pip
25+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
26+ restore-keys : |
27+ ${{ runner.os }}-pip-
2328 - name : Install dependencies
2429 run : |
2530 sudo apt-get update -qq
2631 sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
2732 make install-req
2833 make install-test
29-
3034 - name : Test
35+ run : make pytest
36+ lint :
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v2
40+ - uses : actions/setup-python@v2
41+ with :
42+ python-version : 3.9
43+ - uses : actions/cache@v2
44+ with :
45+ path : ~/.cache/pip
46+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
47+ restore-keys : |
48+ ${{ runner.os }}-pip-
49+ - name : Install dependencies
50+ run : |
51+ sudo apt-get update -qq
52+ sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
53+ make install-req
54+ make install-test
55+ - name : Run linters
3156 run : |
32- make pytest
3357 make pycodestyle
3458 make flake8
35-
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ COVERAGE=coverage
66COVERAGE_CONFIG =tests/coverage.rc
77PEP8_CONFIG =tests/pep8.rc
88MAIN_SOURCE =src/onelogin/saml2
9- DEMOS =demo-django demo-flask
9+ DEMOS =demo-django demo-flask demo-tornado demo_pyramid
1010TESTS =tests/src/OneLogin/saml2_tests
11- SOURCES =$(MAIN_SOURCE ) $(DEMO ) $(TESTS )
11+ SOURCES =$(MAIN_SOURCE ) $(DEMOS ) $(TESTS )
1212
1313install-req :
1414 $(PIP ) install --upgrade ' setuptools<45.0.0'
@@ -25,7 +25,7 @@ pycodestyle:
2525 $(PYCODESTYLE ) --ignore=E501,E731,W504 $(SOURCES ) --config=$(PEP8_CONFIG )
2626
2727flake8 :
28- $(FLAKE8 ) --ignore=E501,E731,W504 $(SOURCES )
28+ $(FLAKE8 ) $(SOURCES )
2929
3030clean :
3131 rm -rf .pytest_cache/
Original file line number Diff line number Diff line change 11[flake8]
2- ignore = E731,W504
2+ ignore = E731,W504,E501
33max-complexity = 48
44max-line-length = 1900
55
You can’t perform that action at this time.
0 commit comments