11# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33
4- name : Python package
4+ name : Python package test
55
66on :
77 push :
@@ -24,25 +24,18 @@ jobs:
2424 uses : actions/setup-python@v1
2525 with :
2626 python-version : ${{ matrix.python-version }}
27- - name : Install dependencies
27+ - name : Upgrade pip
2828 run : |
2929 python -m pip install --upgrade pip
30- pip install -r requirements-test.txt
30+ - name : Install core dependencies
31+ run : |
3132 pip install -r requirements.txt
32- pip install -r requirements-deeplearning.txt
33- - name : Lint code with flake8
33+ - name : Install deep learning dependencies
3434 run : |
35- # stop the build if there are Python syntax errors or undefined names
36- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37- # The GitHub editor is 127 chars wide.
38- flake8 . --count --max-complexity=30 --max-line-length=127 --statistics
39- # Check for cyclometric complexity for specific files where this metric has been
40- # reduced to ten and below
41- flake8 dice_ml/data_interfaces/ --count --max-complexity=10 --max-line-length=127
42- - name : Lint notebooks with flake8_nb
35+ pip install -r requirements-deeplearning.txt
36+ - name : Install test dependencies
4337 run : |
44- # stop the build if there are flake8 errors in notebooks
45- flake8_nb docs/source/notebooks/ --statistics --max-line-length=127
38+ pip install -r requirements-test.txt
4639 - name : Test with pytest
4740 run : |
4841 # pytest
0 commit comments