File tree Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Expand file tree Collapse file tree 1 file changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -3,30 +3,10 @@ name: Python CI Checks
33on : [push, pull_request]
44
55jobs :
6- build :
6+ pre-commit :
77 runs-on : ubuntu-latest
8-
98 steps :
10- - name : Checkout code to check
11- uses : actions/checkout@v1
12- - name : Set up Python 3.x
13- uses : actions/setup-python@v1
14- with :
15- python-version : " 3.x"
16- - name : Install dependencies
17- run : |
18- python -m pip install --upgrade pip
19- # Install all necessary packages, including dev dependencies.
20- pip install -e ."[dev]"
21- - name : Check format with black
22- run : |
23- # Check all python files to see if black would format them.
24- # If black would format them, then the check fails.
25- black --check **/*.py
26- - name : Lint with flake8
27- run : |
28- # exit-zero treats all errors as warnings.
29- flake8 .
30- - name : Test with unittest
31- run : |
32- python -m unittest discover -s tests/
9+ - uses : actions/checkout@v2
10+ - uses : actions/setup-python@v2
11+ - run : pip install -e .
12+ - uses : pre-commit/action@v2.0.0
You can’t perform that action at this time.
0 commit comments