Тестируем в CI/CD с правильным порядком зависимостей #106
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: Linters | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Linters | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout repository | |
uses: actions/checkout@v3 | |
- | |
name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- | |
name: Upgrade pip and tools | |
run: python -m pip install --upgrade pip setuptools wheel | |
- | |
name: Clear pip cache | |
run: python -m pip cache purge | |
- | |
name: Install dependencies | |
run: python -m pip install --requirement requirements-dev.txt | |
- | |
name: Run flake8 | |
run: pflake8 stable_gnn | |
- | |
name: Run isort | |
run: isort --profile black --check-only stable_gnn | |
- | |
name: Run black | |
run: black stable_gnn | |
- | |
name: Check black | |
run: black --diff --check stable_gnn | |