diff --git a/.github/workflows/terrarium_check.yaml b/.github/workflows/terrarium_check.yaml index 0a233e0c6..3c78869eb 100644 --- a/.github/workflows/terrarium_check.yaml +++ b/.github/workflows/terrarium_check.yaml @@ -29,19 +29,18 @@ jobs: rm -rf ./.??* || true - name: Checkout code uses: actions/checkout@v4 - - run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} - name: Setup common tools - run: pip install --no-input poetry pytest + run: pip install --no-input poetry - name: Install dependencies run: | cd "terrarium/${{ matrix.value }}" - pip install --no-input . + poetry -v install --with pytest --without mypy - name: Pytest run: | cd "terrarium/${{ matrix.value }}" - pytest . + poetry run pytest . - mypu: + mypy: runs-on: [ self-hosted, linux ] container: image: "python:3.11.0" @@ -60,14 +59,13 @@ jobs: rm -rf ./.??* || true - name: Checkout code uses: actions/checkout@v4 - - run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} - name: Setup common tools - run: pip install --no-input poetry mypy + run: pip install --no-input poetry - name: Install dependencies run: | cd "terrarium/${{ matrix.value }}" - pip install --no-input . + poetry -v install --with mypy --without pytest - name: Mypy run: | cd "terrarium/${{ matrix.value }}" - mypy . + poetry run mypy . diff --git a/terrarium/bi_ci/pyproject.toml b/terrarium/bi_ci/pyproject.toml index 8ad8abda0..06d046555 100644 --- a/terrarium/bi_ci/pyproject.toml +++ b/terrarium/bi_ci/pyproject.toml @@ -30,8 +30,12 @@ clize = ">=5.0.0" poetry = ">=1.5.0" pyyaml = ">=6.0.1" +[tool.poetry.group.pytest.dependencies] +pytest = ">=7.4.3" + [tool.poetry.group.mypy.dependencies] types_PyYAML = "*" +mypy = ">= 1.7.0" [tool.poetry.scripts] detect-affected-packages = "bi_ci.detect_affected_packages:main" diff --git a/terrarium/dl_repmanager/pyproject.toml b/terrarium/dl_repmanager/pyproject.toml index bbfc17a52..fbb137955 100644 --- a/terrarium/dl_repmanager/pyproject.toml +++ b/terrarium/dl_repmanager/pyproject.toml @@ -17,8 +17,12 @@ tomlkit = "==0.11.8" requests = ">=2.31.0" datalens-cli-tools = {path = "../dl_cli_tools"} -[tool.poetry.group.tests.dependencies] -pytest = ">=7.2.2" +[tool.poetry.group.pytest.dependencies] +pytest = ">=7.4.3" + +[tool.poetry.group.mypy.dependencies] +types_PyYAML = "*" +mypy = ">= 1.7.0" [build-system] requires = ["poetry-core"]