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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
4- name : Python application
1+ name : Run tests
52
63on :
74 push :
4037 with :
4138 python-version : " 3.10"
4239 - uses : Gr1N/setup-poetry@v7
43- # - name: Install dependencies
44- # run: |
45- # python -m pip install --upgrade pip
46- # pip install flake8 pytest
47- # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4840 - name : Install dependencies
4941 run : poetry install
50- - name : Lint with flake8
51- run : |
52- # stop the build if there are Python syntax errors or undefined names
53- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
54- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
55- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
56- - name : Test with pytest
42+ - name : Run all tests
5743 run : |
5844 pytest src
5945 env :
You can’t perform that action at this time.
0 commit comments