Skip to content

Commit

Permalink
simplifying tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lmalina committed Sep 8, 2024
1 parent 63fd155 commit 9a92494
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 9a92494

Please sign in to comment.