Skip to content

Commit aec7517

Browse files
author
William Czifro
authored
Merge pull request #282 from onelogin/migrate-to-gha
Create python-package.yml
2 parents 5545e2b + 611f8be commit aec7517

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)