diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 07f7dac..23f0cd7 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -44,7 +44,7 @@ jobs: run: pip install -r requirements.txt - name: Run tests - run: pytest + run: PYTHONPATH=. pytest deploy: runs-on: ubuntu-latest diff --git a/pdf_processing/test_pdf_extractor.py b/pdf_processing/test_pdf_extractor.py index d93645e..da60a8e 100644 --- a/pdf_processing/test_pdf_extractor.py +++ b/pdf_processing/test_pdf_extractor.py @@ -1,4 +1,4 @@ -from preprocessing import convert_pdf_to_text +from preprocessing import convert_pdf_to_text input_pdf_path = 'tests/sample_pdf.pdf' result_text = convert_pdf_to_text(input_pdf_path)