Upgraded folding and CP layers #170
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out with submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: 'pip' | |
cache-dependency-path: pyproject.toml | |
- name: Cache mypy_cache | |
uses: actions/cache@v3 | |
with: | |
path: .mypy_cache | |
key: mypy_cache-${{ hashFiles('pyproject.toml') }} | |
restore-keys: mypy_cache- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[lint] | |
bash ./benchmark/install_submodule.sh all | |
- name: Run Black | |
run: black --verbose --check --diff $(git ls-files "*.py") | |
- name: Run Isort | |
run: isort --verbose --check --diff $(git ls-files "*.py") | |
- name: Run Pydocstyle | |
run: pydocstyle --verbose $(git ls-files "*.py") | |
- name: Run Pylint | |
run: pylint --verbose --persistent=n $(git ls-files "*.py") | |
- name: Run Mypy | |
run: mypy $(git ls-files "*.py") |