From 444d010bbfe9b01a02c9eeea5970b29934109c00 Mon Sep 17 00:00:00 2001 From: IgorVolochay Date: Sat, 15 Feb 2025 16:43:46 +0300 Subject: [PATCH] Refactor workflows --- .../{mypy-test.yml => app-actions.yml} | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) rename .github/workflows/{mypy-test.yml => app-actions.yml} (51%) diff --git a/.github/workflows/mypy-test.yml b/.github/workflows/app-actions.yml similarity index 51% rename from .github/workflows/mypy-test.yml rename to .github/workflows/app-actions.yml index 0ac5f6c..81665fe 100644 --- a/.github/workflows/mypy-test.yml +++ b/.github/workflows/app-actions.yml @@ -1,22 +1,31 @@ -name: mypy-test +name: app-actions on: push: - paths: - - '**.py' + branches: + - main + - app + pull_request: + branches: + - main jobs: mypy: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Python uses: actions/setup-python@v4 with: python-version: 3.9 architecture: x64 - - name: Checkout - uses: actions/checkout@v3 - - name: Install mypy - run: pip install mypy + + - name: Install dependencies + run: | + pip install mypy + pip install -r requirements.txt + - name: Run mypy - run: mypy --ignore-missing-imports ./app + run: mypy --ignore-missing-imports ./app \ No newline at end of file