diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index c07109a89..aec95822f 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -462,6 +462,26 @@ jobs: steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + # To be removed once poetry 1.2 is released to manage dependencies with groups + - name: Cache Installation Files + uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 + with: + # Paths are Unix specific for now + path: | + ~/.cache/pip + ~/.cache/pypoetry + # Ignore line break in the evaluated double quoted string + key: "${{ runner.os }}-build-${{ matrix.python-version }}-\ + ${{ hashFiles('poetry.lock') }}" + restore-keys: | + ${{ runner.os }}-build-${{ matrix.python-version }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install poetry + make setup_env - name: Set tag in env run: | GIT_TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///g') @@ -476,7 +496,7 @@ jobs: # We want the space separated list of versions to be expanded # shellcheck disable=SC2086 - REQUIRES_LATEST_TAG=$(python script/make_utils/version_utils.py \ + REQUIRES_LATEST_TAG=$(poetry run python script/make_utils/version_utils.py \ islatest \ --new-version "${GIT_TAG}" \ --existing-versions $EXISTING_TAGS)