File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : Python package
5+
6+ on : [push, pull_request]
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Set up Python 2.7
15+ uses : actions/setup-python@v2
16+ with :
17+ python-version : 2.7
18+
19+ - name : Install dependencies
20+ run : |
21+ sudo apt-get update -qq
22+ sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
23+ pip install .
24+ pip install -e ".[test]"
25+
26+ - name : Test
27+ run : |
28+ coverage run --source=src/onelogin/saml2 --rcfile=tests/coverage.rc setup.py test
29+ coverage report -m --rcfile=tests/coverage.rc
30+ pycodestyle tests/src/OneLogin/saml2_tests/*.py demo-flask/*.py demo-django/*.py src/onelogin/saml2/*.py --config=tests/pep8.rc
31+ pyflakes src/onelogin/saml2 demo-django demo-flask tests/src/OneLogin/saml2_tests
You can’t perform that action at this time.
0 commit comments