Skip to content

Commit df7c409

Browse files
committed
Update build_tests.yml
1 parent 320dbcb commit df7c409

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build_tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
21
name: build
32

43
on: [push]
54

65
jobs:
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

0 commit comments

Comments
 (0)