diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5f13cb3..c733602 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,21 +24,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - name: Get full Python version - id: full-python-version - run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") - - - name: Set up cache - uses: actions/cache@v3 - id: cache - with: - path: .venv - key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }} - - - name: Ensure cache is healthy - if: steps.cache.outputs.cache-hit == 'true' - run: pip --version >/dev/null 2>&1 || rm -rf .venv + cache: 'pip' + cache-dependency-path: '**/pyproject.toml' - name: Upgrade pip, setuptools and wheel run: |