From 3ccffa5dcced6c14d89cc58d1469e69d082360e3 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 6 Feb 2024 11:51:04 -0800 Subject: [PATCH] infra: add integration deps to partner lint (#17122) --- .github/workflows/_lint.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index e2e3877c55..8f07db9afb 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -94,7 +94,7 @@ jobs: run: | make lint_package - - name: Install test dependencies + - name: Install unit test dependencies # Also installs dev/lint/test/typing dependencies, to ensure we have # type hints for as many of our libraries as possible. # This helps catch errors that require dependencies to be spotted, for example: @@ -103,9 +103,15 @@ jobs: # If you change this configuration, make sure to change the `cache-key` # in the `poetry_setup` action above to stop using the old cache. # It doesn't matter how you change it, any change will cause a cache-bust. + if: ${{ ! startsWith(inputs.working-directory, 'libs/partners/') }} working-directory: ${{ inputs.working-directory }} run: | poetry install --with test + - name: Install unit+integration test dependencies + if: ${{ startsWith(inputs.working-directory, 'libs/partners/') }} + working-directory: ${{ inputs.working-directory }} + run: | + poetry install --with test,test_integration - name: Get .mypy_cache_test to speed up mypy uses: actions/cache@v3