Skip to content

Commit 487e89c

Browse files
committed
Use PyTinyTeX instead in ci
1 parent 35035f6 commit 487e89c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
python-version: ${{ matrix.python-version }}
3636
- name: Print Python Information
3737
run: python -VV
38-
- name: Specify tinytex mirror (CTAN_REPO)
38+
- name: Install TinyTeX
3939
run: |
40-
echo "CTAN_REPO=https://mirrors.dotsrc.org/ctan/" >> $GITHUB_ENV
41-
- name: install TinyTeX
42-
uses: r-lib/actions/setup-tinytex@v2
40+
pip3 install -U pytinytex
41+
python3 -c "import pytinytex; pytinytex.download_tinytex()"
42+
# add latex engine to PATH
43+
python3 -c "import pytinytex;print(pytinytex.get_tinytex_path())" >> $GITHUB_PATH
44+
python3 -c "import pytinytex;print(pytinytex.get_pdf_latex_engine())" >> $GITHUB_PATH
45+
tlmgr update --self
46+
tlmgr update --all
4347
- name: Install and configure Poetry
4448
run: |
4549
pip3 install -U poetry setuptools

0 commit comments

Comments
 (0)