@@ -2,41 +2,40 @@ name: knx-stack
22
33on :
44 push :
5- branches : [ kickoff ]
5+ branches : [kickoff]
66 pull_request :
7- branches : [ kickoff ]
7+ branches : [kickoff]
88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
1312
1413 steps :
15- - uses : actions/checkout@v2
16- - name : Set up Python 3.8
17- uses : actions/setup-python@v2
18- with :
19- python-version : 3.8
20- - name : Install dependencies
21- run : |
22- python -m pip install --upgrade pip
23- pip install flake8 pytest coverage
24- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25- python setup.py install
26- # - name: Lint with flake8
27- # run: |
28- # stop the build if there are Python syntax errors or undefined names
29- # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
31- # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32- - name : Test and Coverage
33- run : |
34- python -m coverage run
35- python -m coverage report
36- - name : Build egg
37- run : |
38- python setup.py bdist_egg
39- - name : Upload a Build Artifact
40- uses : actions/upload-artifact@v2.1.4
41- with :
42- path : dist/*
14+ - uses : actions/checkout@v2
15+ - name : Set up Python 3.8
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : 3.8
19+ - name : Install dependencies
20+ run : |
21+ python -m pip install --upgrade pip
22+ pip install flake8 pytest coverage
23+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24+ python setup.py install
25+ # - name: Lint with flake8
26+ # run: |
27+ # stop the build if there are Python syntax errors or undefined names
28+ # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30+ # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+ - name : Test and Coverage
32+ run : |
33+ python -m coverage run
34+ python -m coverage report
35+ - name : Build egg
36+ run : |
37+ python setup.py bdist_egg
38+ - name : Upload a Build Artifact
39+ uses : actions/upload-artifact@v2.1.4
40+ with :
41+ path : dist/*
0 commit comments