This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : oidcrp
5+
6+ on :
7+ push :
8+ branches : [ main, develop ]
9+ pull_request :
10+ branches : [ main, develop ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ python-version :
21+ - ' 3.6'
22+ - ' 3.7'
23+ - ' 3.8'
24+ - ' 3.9'
25+
26+ steps :
27+ - uses : actions/checkout@v2
28+ - name : Set up Python ${{ matrix.python-version }}
29+ uses : actions/setup-python@v2
30+ with :
31+ python-version : ${{ matrix.python-version }}
32+ - name : Install dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ python setup.py install
36+ python setup.py test
37+ pip install flake8
38+ - name : Lint with flake8
39+ run : |
40+ # stop the build if there are Python syntax errors or undefined names
41+ flake8 ./src/cms --count --select=E9,F63,F7,F82 --show-source --statistics
42+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
43+ flake8 ./src/cms --count --exit-zero --statistics
44+
45+ - name : Test with Django tests
46+ working-directory : ./example
47+ run : |
48+ py.test tests/
You can’t perform that action at this time.
0 commit comments