Skip to content

Commit 2150072

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

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,18 @@ 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+
echo "Adding TinyTeX to PATH"
43+
TINYTEX_PATH=$(python3 -c "import pytinytex; print(pytinytex.get_tinytex_path())")
44+
echo "$TINYTEX_PATH" >> $GITHUB_PATH
45+
- name: Update TeX Live packages
46+
run: |
47+
echo "Updating TeX Live packages"
48+
tlmgr update --self
49+
tlmgr update --all
4350
- name: Install and configure Poetry
4451
run: |
4552
pip3 install -U poetry setuptools

0 commit comments

Comments
 (0)