This commit is contained in:
parent
6689847c0e
commit
6ab76a9754
|
@ -2,33 +2,6 @@ name: 'Deploy on push'
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
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:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: type-check
|
needs: type-check
|
||||||
|
|
Loading…
Reference in New Issue
Block a user