feat: Добавил CI и зависимости #1
This file contains hidden or 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: push | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('requirements_ci.txt') }} | |
| - name: Install dependencies | |
| run: pip install -r requirements_ci.txt | |
| - name: Run flake8 | |
| run: flake8 src/ tests/ --verbose | |
| - name: Run black | |
| run: black src/ tests/ --check | |
| - name: Run isort | |
| run: isort src/ tests/ --check-only |