This repository was archived by the owner on Oct 29, 2023. It is now read-only.
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://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : Python application
5+
6+ on : [push]
7+
8+ jobs :
9+ build :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
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 pytest-cov
23+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24+ - name : Lint with flake8
25+ run : |
26+ # stop the build if there are Python syntax errors or undefined names
27+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
29+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30+ - name : Test with pytest
31+ run : |
32+ pytest tests/ --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
33+
You can’t perform that action at this time.
0 commit comments