From 3c2463e376f862cd6b871c4a9542803e8d1dc146 Mon Sep 17 00:00:00 2001 From: Kira <117554978+kiraware@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:44:47 +0800 Subject: [PATCH] fix mypy not detect pytest in dev ci mypy require pytest (test dependency) to be installed in order to perform static type analysis, hence it raise error if pytest dependency not installed. to fix this, we just need to include the test dependency. --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 631596d..2d043df 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -34,7 +34,7 @@ jobs: key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root --without test --with docs + run: poetry install --no-interaction --no-root --with docs - name: Activate virtual environment run: source $VENV - name: Lint with Ruff