File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed 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
5
2
6
3
on :
7
4
push :
40
37
with :
41
38
python-version : " 3.10"
42
39
- 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
48
40
- name : Install dependencies
49
41
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
57
43
run : |
58
44
pytest src
59
45
env :
You can’t perform that action at this time.
0 commit comments