Merge pull request #161 from april-tools/new_unfolded_layers #240
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 linters | |
run: | | |
./scripts/lint.sh --verbose |