This commit is contained in:
@@ -2,33 +2,6 @@ name: 'Deploy on push'
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
type-check:
|
||||
runs-on: python-3.13
|
||||
steps:
|
||||
- name: Cloning repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache pip packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip3 install -r requirements.txt
|
||||
pip3 install -r requirements.dev.txt
|
||||
pip3 install mypy types-redis types-requests
|
||||
|
||||
- name: Run type checking with mypy
|
||||
run: |
|
||||
echo "🔍 Проверка типобезопасности с mypy..."
|
||||
python3 -m mypy . --show-error-codes --no-error-summary --pretty
|
||||
echo "✅ Все проверки типов прошли успешно!"
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: type-check
|
||||
|
Reference in New Issue
Block a user