diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ae375f..38218e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,19 +23,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.12' - - - name: Get pip cache dir - id: pip-cache - run: | - echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache - uses: actions/cache@v4 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: release-${{ hashFiles('**/setup.py') }} - restore-keys: | - release- + cache: pip + cache-dependency-path: | + **/pyproject.toml - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 279f652..5fa02dc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,20 +39,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - name: Get pip cache dir - id: pip-cache - run: | - echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache - uses: actions/cache@v4 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: - ${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }} - restore-keys: | - ${{ matrix.python-version }}-v1- + cache: pip + cache-dependency-path: | + **/pyproject.toml - name: Install dependencies run: |