Skip to content

Commit 5face72

Browse files
Merge pull request #415 from JessicaTegner/jessica/tinytex_fix
Skip TinyTeX download and PDF test in CI
2 parents 35035f6 + 71dedd4 commit 5face72

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ jobs:
3535
python-version: ${{ matrix.python-version }}
3636
- name: Print Python Information
3737
run: python -VV
38-
- name: Specify tinytex mirror (CTAN_REPO)
39-
run: |
40-
echo "CTAN_REPO=https://mirrors.dotsrc.org/ctan/" >> $GITHUB_ENV
41-
- name: install TinyTeX
42-
uses: r-lib/actions/setup-tinytex@v2
4338
- name: Install and configure Poetry
4439
run: |
4540
pip3 install -U poetry setuptools

tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,10 @@ def test_conversion_from_non_plain_text_file(self):
620620
received = pypandoc.convert_file(file_name, to="rst")
621621
self.assertEqualExceptForNewlineEnd(expected, received)
622622

623+
# skip in ci
624+
@unittest.skipIf(
625+
os.environ.get("CI") == "true", "Skipping PDF conversion test in CI environment"
626+
)
623627
def test_pdf_conversion(self):
624628
with closed_tempfile(".pdf") as file_name:
625629
ret = pypandoc.convert_text(

0 commit comments

Comments
 (0)