File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
21name : build
32
43on : [push]
54
65jobs :
76 build :
8-
97 runs-on : ${{ matrix.os }}
108 strategy :
119 matrix :
@@ -17,17 +15,23 @@ jobs:
1715 uses : actions/setup-python@v5
1816 with :
1917 python-version : ${{ matrix.python-version }}
18+
2019 - name : Install dependencies
2120 run : |
2221 python -m pip install --upgrade pip
2322 pip install flake8 pytest
23+ if [ ${{ runner.os }} = "macOS" ]; then
24+ brew install libomp
25+ fi
2426 pip install -r requirements.txt
27+
2528 - name : Lint with flake8
2629 run : |
2730 # stop the build if there are Python syntax errors or undefined names
2831 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2932 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3033 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+
3135 - name : Test with pytest
3236 run : |
33- pytest -v
37+ pytest -v
You can’t perform that action at this time.
0 commit comments