Skip to content

Commit bee0d00

Browse files
authored
build: Fix issue with tox cache (#61)
1 parent b4bab8b commit bee0d00

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- python: "3.10"
2828
tox_env: "py310"
2929
- python: "~3.11.0-0" # see https://github.com/actions/setup-python/issues/213#issuecomment-1146676713
30-
tox_env: py311
30+
tox_env: "py311"
3131
- python: "pypy-3.8"
3232
tox_env: "pypy3"
3333
steps:
@@ -44,6 +44,7 @@ jobs:
4444
uses: actions/cache@v3
4545
with:
4646
path: .tox
47-
key: tox-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}
47+
# increment if issues with cache
48+
key: tox-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-01
4849
- name: Test
4950
run: tox -e ${{ matrix.tox_env }}

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ setenv = PYTHONDONTWRITEBYTECODE=1
77
commands = pytest -v -r a {posargs}
88

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

0 commit comments

Comments
 (0)