From 06b708828f212e4caeba205fc0acb6c4c44df9f2 Mon Sep 17 00:00:00 2001 From: Niklas Bittner Date: Tue, 4 Feb 2025 02:16:08 +0100 Subject: [PATCH] ci: cache poetry installation --- .gitea/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 706a0f5..3c731f9 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -20,7 +20,15 @@ jobs: python-version: "3.13.1" cache: "pip" + - name: Load cached Poetry installation + id: cached-poetry + uses: actions/cache@v4 + with: + path: ~/.local + key: poetry-0 # increment to reset cache + - name: Install and configure Poetry + if: steps.cached-poetry.outputs.cache-hit != 'true' uses: snok/install-poetry@v1 with: virtualenvs-create: false @@ -32,7 +40,7 @@ jobs: - name: Verify that poetry.lock is consistent with pyproject.toml run: | - poetry lock --check + poetry check --lock - name: Install dependencies run: |