File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python package
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+
8+ jobs :
9+ validate :
10+
11+ runs-on : ubuntu-latest
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ python-version : ["3.8", "3.9", "3.10"]
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip
26+ python -m pip install flake8 nose
27+ pip install -r requirements.txt
28+ - name : Lint with flake8
29+ run : |
30+ # stop the build if there are Python syntax errors or undefined names
31+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
32+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
33+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+ - name : Test with nose
35+ run : |
36+ nosetests -v --with-coverage --cover-package=python-gitlab-submodule tests
You can’t perform that action at this time.
0 commit comments