File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 99]
1010
1111TESTS_REQUIRE = [
12- 'pytest'
12+ 'pytest' ,
13+ 'black'
1314]
1415
1516EXTRAS_REQUIRE = {
You can’t perform that action at this time.
0 commit comments