From ef2db0b5b081b75245a67e7e39c1d6ed9ddf3028 Mon Sep 17 00:00:00 2001 From: ashariyar Date: Fri, 13 Dec 2024 19:53:45 -0500 Subject: [PATCH] Tests dir for GH actions --- tests/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 653ed30..d7513be 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,7 +8,10 @@ from pdfalyzer.pdfalyzer import Pdfalyzer -PROJECT_DIR = path.join(str(importlib.resources.files('pdfalyzer')), pardir) +# TODO: importlib doesn't play nice with running tests via GitHub actions +# PROJECT_DIR = path.join(str(importlib.resources.files('pdfalyzer')), pardir) +PYTESTS_DIR = path.dirname(__file__) +PROJECT_DIR = path.join(PYTESTS_DIR, pardir) DOCUMENTATION_DIR = path.join(PROJECT_DIR, 'doc') SVG_DIR = path.join(DOCUMENTATION_DIR, 'svgs') RENDERED_IMAGES_DIR = path.join(SVG_DIR, 'rendered_images')