Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup CI/CD to work correctly with pylatex and texlive configured #8

Open
lgabs opened this issue Nov 10, 2024 · 0 comments
Open

Setup CI/CD to work correctly with pylatex and texlive configured #8

lgabs opened this issue Nov 10, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@lgabs
Copy link
Owner

lgabs commented Nov 10, 2024

Objective

The objective of this issue is to configure the CI/CD pipeline to run tests on PDF generation with PyLaTeX. The ideal solution would involve adding steps to ci.yml so that the TeX Live environment is correctly configured for the unit tests.

Context

I’ve created unit tests to verify PDF generation with PyLaTeX. These tests work locally but fail on the CI/CD runner due to missing TeX Live dependencies. I have tried several approaches to install TeX Live and the required packages in the CI/CD environment without success. That's why the current ci.yml ignores tests involving pylatex usage.

Here are some methods I attempted:

  • install-tex-live action

  • setup-tex-live action

  • Manually installing TeX Live and required packages. For example:

    # ci.yml
    ...
          - name: Install TeX Live (with necessary packages)
            run: |
              sudo apt-get update
              sudo apt-get install -y texlive-latex-recommended
    
          - name: Additional LaTeX Packages
            run: |
              sudo tlmgr init-usertree
              tlmgr install amsmath amssymb amsfonts graphicx hyperref
    ...
@lgabs lgabs added the help wanted Extra attention is needed label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant