From 556766aded294b220b6a0ce9e2a6cbe44b5a85cd Mon Sep 17 00:00:00 2001 From: phi Date: Thu, 29 Feb 2024 20:15:19 +0900 Subject: [PATCH] fix: action --- .github/workflows/check.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index d44fd38..6a018ca 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -18,20 +18,17 @@ jobs: - name: Install rye uses: eifinger/setup-rye@v1 + id: setup-rye + with: + enable-cache: true + cache-prefix: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }} - name: set rye python run: | rye pin cpython@${{ matrix.python-version }} - - name: Load cached venv - id: cached-venv-dependencies - uses: actions/cache@v4 - with: - path: .venv - key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }} - - name: Install dependencies - if: steps.cached-venv-dependencies.outputs.cache-hit != 'true' + if: steps.setup-rye.outputs.cache-hit == 'true' run: | rye sync --all-features