From bb2a8caf035c42dfab4c7339a212f24ce5d43174 Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Thu, 30 May 2024 09:50:09 +0100 Subject: [PATCH] CI: Enable caching for poetry packages Closes #597. --- .github/workflows/ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 486a0ab1..5f45a810 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,9 +30,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Poetry + uses: abatilo/actions-poetry@v2.3.0 + with: + poetry-version: 1.8.3 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: poetry - name: Install system dependencies in Linux if: matrix.os == 'ubuntu-latest' @@ -45,11 +51,6 @@ jobs: # Without this, PySide6 gives an ImportError sudo apt install libegl1 - - name: Install Poetry - uses: abatilo/actions-poetry@v2.3.0 - with: - poetry-version: 1.8.3 - - name: Install dependencies run: poetry install