Refactor workflows

This commit is contained in:
IgorVolochay
2025-02-15 16:43:46 +03:00
parent e5b336e8e4
commit 444d010bbf
@@ -1,22 +1,31 @@
name: mypy-test name: app-actions
on: on:
push: push:
paths: branches:
- '**.py' - main
- app
pull_request:
branches:
- main
jobs: jobs:
mypy: mypy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.9 python-version: 3.9
architecture: x64 architecture: x64
- name: Checkout
uses: actions/checkout@v3 - name: Install dependencies
- name: Install mypy run: |
run: pip install mypy pip install mypy
pip install -r requirements.txt
- name: Run mypy - name: Run mypy
run: mypy --ignore-missing-imports ./app run: mypy --ignore-missing-imports ./app