Enable caching for github actions (#43)

This commit is contained in:
ian_Cin
2023-10-12 13:52:19 +07:00
committed by GitHub
parent 84f1fa8cbd
commit 533fffa6db
3 changed files with 40 additions and 9 deletions

View File

@@ -11,14 +11,17 @@ input_file_excel = Path(__file__).parent / "resources" / "dummy.xlsx"
@pytest.fixture
def fullocr_output():
with open(Path(__file__).parent / "resources" / "fullocr_sample_output.json") as f:
with open(
Path(__file__).parent / "resources" / "fullocr_sample_output.json",
encoding="utf-8",
) as f:
fullocr = json.load(f)
return fullocr
@pytest.fixture
def mathpix_output():
with open(Path(__file__).parent / "resources" / "policy.md") as f:
with open(Path(__file__).parent / "resources" / "policy.md", encoding="utf-8") as f:
content = f.read()
return content