Skip to content

Commit

Permalink
build: Fix issue with tox cache (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil committed Dec 27, 2022
1 parent b4bab8b commit bee0d00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- python: "3.10"
tox_env: "py310"
- python: "~3.11.0-0" # see https://github.com/actions/setup-python/issues/213#issuecomment-1146676713
tox_env: py311
tox_env: "py311"
- python: "pypy-3.8"
tox_env: "pypy3"
steps:
Expand All @@ -44,6 +44,7 @@ jobs:
uses: actions/cache@v3
with:
path: .tox
key: tox-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}
# increment if issues with cache
key: tox-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-01
- name: Test
run: tox -e ${{ matrix.tox_env }}
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ setenv = PYTHONDONTWRITEBYTECODE=1
commands = pytest -v -r a {posargs}

[testenv:linting]
skip_install = True
basepython = python3
skip_install = true
basepython = python3.10
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure

Expand Down

0 comments on commit bee0d00

Please sign in to comment.