Skip to content

Commit d8e3d39

Browse files
committed
fix ci cache
1 parent 20281dc commit d8e3d39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
id: cache
2828
with:
2929
path: .venv
30-
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
30+
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
3131
- name: Ensure cache is healthy
3232
if: steps.cache.outputs.cache-hit == 'true'
3333
run: timeout 10s poetry run pip --version || rm -rf .venv
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
python-version: "3.7"
4545
- name: Run image
46-
uses: abatilo/actions-poetry@v2
46+
uses: abatilo/actions-poetry@v2.1.6
4747
with:
4848
poetry-version: ${{ env.POETRY_VERSION }}
4949
- run: poetry config virtualenvs.in-project true

tests/test_runtime_only/test_literal_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pytest
55

66

7-
@pytest.mark.skipif(sys.version_info < (3, 9))
7+
@pytest.mark.skipif(sys.version_info < (3, 9), reason="need 3.9 for LiteralType")
88
def test_literal_type_positive() -> None:
99
from typing import Literal
1010

@@ -13,7 +13,7 @@ def test_literal_type_positive() -> None:
1313
assert isinstance(Literal[1, 2], LiteralType)
1414

1515

16-
@pytest.mark.skipif(sys.version_info < (3, 9))
16+
@pytest.mark.skipif(sys.version_info < (3, 9), reason="need 3.9 for LiteralType")
1717
def test_literal_type_negative() -> None:
1818
from basedtyping.runtime_only import LiteralType
1919

0 commit comments

Comments
 (0)