File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111 runs-on : ubuntu-latest
12- container : python:3.9-slim
1312
1413 steps :
1514 # Checkout the repo
1615 - name : Checkout
1716 uses : actions/checkout@v3
1817
18+ # Setup Python
19+ - name : Setup Python
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ' 3.9'
23+
1924 # Install dependencies
2025 - name : Install dependencies
2126 run : |
@@ -24,15 +29,15 @@ jobs:
2429 pip install flake8
2530 pip install nose
2631
27- # Lint your code
32+ # Lint code
2833 - name : Lint with flake8
2934 run : |
3035 flake8 ci_cd_final_project/service --count --select=E9,F63,F7,F82 --show-source --statistics
3136 flake8 ci_cd_final_project/service --count --max-complexity=10 --max-line-length=127 --statistics
3237 flake8 ci_cd_final_project/tests --count --select=E9,F63,F7,F82 --show-source --statistics
3338 flake8 ci_cd_final_project/tests --count --max-complexity=10 --max-line-length=127 --statistics
3439
35- # Run unit tests with nose
40+ # Run unit tests
3641 - name : Run unit tests with nose
3742 run : |
3843 nosetests -v --with-spec --spec-color --with-coverage --cover-package=ci_cd_final_project/service
You can’t perform that action at this time.
0 commit comments