File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Continuous Integration
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+
9+ strategy :
10+ matrix :
11+ python-version : [3.10]
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : ${{ matrix.python-version }}
20+
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install -r requirements.txt
25+ pip install flake8 pytest
26+
27+ - name : Run flake8
28+ run : |
29+ echo "Running flake8..."
30+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
32+
33+ - name : Run tests with pytest
34+ run : |
35+ echo "Running pytest..."
36+ pytest
You can’t perform that action at this time.
0 commit comments