try to run latex on ubuntu

This commit is contained in:
Sina Atalay
2023-10-09 20:06:07 +02:00
parent e5efd21b0a
commit e3cb9deffd
4 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
name: Deploy MkDocs
name: deploy MkDocs
on:
push:
branches:

View File

@@ -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:

View File

@@ -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

View File

@@ -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__":