File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - " docs/**"
1414
1515jobs :
16- test :
16+ lint :
1717 runs-on : ubuntu-latest
1818
1919 steps :
4141 - name : Lint with mypy
4242 run : mypy $(git ls-files '*.py')
4343
44- - name : Test with pytest
45- run : pytest --cov src tests/
44+ - name : Check code formatting with black
45+ run : black --check --diff $(git ls-files '*.py')
46+
47+ - name : Check code formatting with isort
48+ run : isort --check-only --diff $(git ls-files '*.py')
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths-ignore :
7+ - " README.md"
8+ - " docs/**"
9+ pull_request :
10+ branches : [main]
11+ paths-ignore :
12+ - " README.md"
13+ - " docs/**"
14+
15+ jobs :
16+ test :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v6
21+ - name : Set up Python 3.10
22+ uses : actions/setup-python@v6
23+ with :
24+ python-version : " 3.10"
25+ - name : Install dependencies for requirements and testing
26+ run : |
27+ python -m pip install --upgrade pip
28+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+ if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
30+
31+ - name : Test with pytest
32+ run : pytest --cov src tests/
Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ pytest-cov
44pylint
55mypy
66flake8
7+ black
8+ isort
You can’t perform that action at this time.
0 commit comments