From e3cb9deffd7b66fea1c6e12b6843ffd573544105 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Mon, 9 Oct 2023 20:06:07 +0200 Subject: [PATCH] try to run latex on ubuntu --- .github/workflows/deploy-mkdocs.yaml | 2 +- .github/workflows/python-tests.yml | 2 +- rendercv/rendering.py | 2 +- tests/test_rendering.py | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-mkdocs.yaml b/.github/workflows/deploy-mkdocs.yaml index 82bf9ae8..5c17276e 100644 --- a/.github/workflows/deploy-mkdocs.yaml +++ b/.github/workflows/deploy-mkdocs.yaml @@ -1,4 +1,4 @@ -name: Deploy MkDocs +name: deploy MkDocs on: push: branches: diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 393d8b40..0176ef99 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python tests +name: python tests on: push: diff --git a/rendercv/rendering.py b/rendercv/rendering.py index f3bf8591..8702005d 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -394,7 +394,7 @@ def run_latex(latex_file_path): "-file-line-error", ], cwd=os.path.dirname(latex_file_path), - stdout=subprocess.DEVNULL, + stdout=subprocess.DEVNULL, # suppress latexmk output ) end_time = time.time() time_taken = end_time - start_time diff --git a/tests/test_rendering.py b/tests/test_rendering.py index 622ae266..07917da5 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -400,12 +400,12 @@ class TestDataModel(unittest.TestCase): # Remove the output directory: shutil.rmtree(output_folder_path) - # def test_run_latex(self): - # latex_file_path = os.path.join( - # os.path.dirname(__file__), "reference_files", "John_Doe_CV.tex" - # ) + def test_run_latex(self): + latex_file_path = os.path.join( + os.path.dirname(__file__), "reference_files", "John_Doe_CV.tex" + ) - # rendering.run_latex(latex_file_path) + rendering.run_latex(latex_file_path) if __name__ == "__main__":