From 9a92494fde49c9fb4ca56f2555b08e60460f8601 Mon Sep 17 00:00:00 2001 From: lmalina Date: Sun, 8 Sep 2024 13:23:56 +0200 Subject: [PATCH] simplifying tests workflow --- .github/workflows/tests.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) 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: |