From 6c776cf87826074980cfbeaf977cce1dedfb0fd7 Mon Sep 17 00:00:00 2001 From: Nikita Reznikov <63803175+rnv812@users.noreply.github.com> Date: Sun, 26 May 2024 18:31:21 +0300 Subject: [PATCH] Update check-source.yml --- .github/workflows/check-source.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-source.yml b/.github/workflows/check-source.yml index 40a749c..449d08c 100644 --- a/.github/workflows/check-source.yml +++ b/.github/workflows/check-source.yml @@ -21,15 +21,15 @@ jobs: - name: Install dependencies run: | curl -sSL https://install.python-poetry.org | python3 - - $HOME/.local/bin/poetry install - $HOME/.local/bin/poetry shell + export PATH=$PATH:$HOME/.local/bin/ + poetry install - name: Lint with flake8 run: | # stop the build if source code does not folows PEP8 - flake8 . --count --show-source --statistics - - name: Chekc types with mypy + poetry run flake8 . --count --show-source --statistics + - name: Check types with mypy run: | - mypy . + poetry run mypy . - name: Test with pytest run: | - pytest -v + poetry run pytest -v