From 152c8c5410fbf79aee0736171049206d4500a79f Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Fri, 10 Nov 2023 16:40:07 -0600 Subject: [PATCH 1/2] github: Cache virtualenv --- .github/workflows/check_protos.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_protos.yml b/.github/workflows/check_protos.yml index 03ab823..7250127 100644 --- a/.github/workflows/check_protos.yml +++ b/.github/workflows/check_protos.yml @@ -23,7 +23,13 @@ jobs: uses: Gr1N/setup-poetry@v8 with: poetry-version: ${{ env.POETRY_VERSION }} - - name: Install the dependencies for checking .proto files + - name: Cache virtualenv + uses: actions/cache@v3 + id: cache + with: + path: .github/check_protos/.venv + key: check-protos-${{ runner.os }}-py${{ env.PYTHON_VERSION }}-${{ hashFiles('.github/check_protos/poetry.lock') }} + - name: Install dependencies run: poetry install -v working-directory: ./.github/check_protos - name: Check .proto files From 04063004a9b055c2b243ed330ebad2a5a2b92a7b Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Fri, 10 Nov 2023 16:42:33 -0600 Subject: [PATCH 2/2] github: Remove unneeded id for cache step --- .github/workflows/check_protos.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/check_protos.yml b/.github/workflows/check_protos.yml index 7250127..56a35c2 100644 --- a/.github/workflows/check_protos.yml +++ b/.github/workflows/check_protos.yml @@ -25,7 +25,6 @@ jobs: poetry-version: ${{ env.POETRY_VERSION }} - name: Cache virtualenv uses: actions/cache@v3 - id: cache with: path: .github/check_protos/.venv key: check-protos-${{ runner.os }}-py${{ env.PYTHON_VERSION }}-${{ hashFiles('.github/check_protos/poetry.lock') }}