Skip to content

Commit 2aa48f9

Browse files
committed
Add Black linting check to CI and add to test reqs
1 parent c695897 commit 2aa48f9

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,27 @@ jobs:
1515
python-version: [ '3.5', '3.8' ]
1616
steps:
1717
- uses: actions/checkout@v2
18+
1819
- name: Set up Python ${{ matrix.python-version }}
1920
uses: actions/setup-python@v2
2021
with:
2122
python-version: ${{ matrix.python-version }}
23+
2224
- name: Install dependencies
2325
run: |
2426
python -m pip install --upgrade pip
2527
pip install "numpy<1.19.0"
2628
pip install -r test_requirements.txt
2729
pip install pytest-cov
30+
31+
- name: Run Black check for formatting
32+
run: |
33+
black --check .
34+
2835
- name: Test with pytest
2936
run: |
3037
pytest --cov=./ --cov-report=xml
38+
3139
- name: Upload coverage to Codecov
3240
uses: codecov/codecov-action@v1
3341
with:

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
]
1010

1111
TESTS_REQUIRE = [
12-
'pytest'
12+
'pytest',
13+
'black'
1314
]
1415

1516
EXTRAS_REQUIRE = {

0 commit comments

Comments
 (0)