From 5bc5b002a301caa2654c570dc17d671a0dc7c3e1 Mon Sep 17 00:00:00 2001 From: int3l Date: Fri, 25 Aug 2023 23:21:24 +0300 Subject: [PATCH] Upgrade CI caching setup --- .github/workflows/ci.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 51338b5..6aff93e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,21 +30,11 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Upgrade bootstrap packages run: python -m pip install --upgrade pip tox - - name: Get pip cache dir - id: pip-cache - run: echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache pip - uses: actions/cache@v3 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: pip-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('setup.py') }} - restore-keys: pip-${{ runner.os }}-${{ matrix.python }}- - - name: Set Python version # See https://pre-commit.com/#github-actions-example run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV