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
1+ # This workflow will install Python dependencies, lint, and run app.py with a single version of Python
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33
44name : Mini-nanoGPT
@@ -19,21 +19,23 @@ jobs:
1919
2020 steps :
2121 - uses : actions/checkout@v4
22+
2223 - name : Set up Python 3.10
2324 uses : actions/setup-python@v3
2425 with :
2526 python-version : " 3.10"
27+
2628 - name : Install dependencies
2729 run : |
2830 python -m pip install --upgrade pip
29- pip install flake8 pytest
31+ pip install flake8
3032 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
3134 - name : Lint with flake8
3235 run : |
33- # stop the build if there are Python syntax errors or undefined names
3436 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3637 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37- - name : Test with pytest
38+
39+ - name : Run app.py
3840 run : |
39- pytest
41+ python app.py
You can’t perform that action at this time.
0 commit comments