Skip to content

Commit

Permalink
skip test use pandoc if os is osx and use is latex
Browse files Browse the repository at this point in the history
  • Loading branch information
PaleNeutron committed Sep 15, 2024
1 parent 64cee11 commit 037db1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,7 @@ jobs:
# fix pandoc version to 3.1.6 until https://github.com/jupyter/nbconvert/issues/2164 fixed
run: |
brew update
# Please define variables
export packageName=pandoc
export packageVersion=3.1.6.1
brew install $packageName
# Create a new tab
brew tap-new local/$packageName
# Extract into local tap
brew extract --version=$packageVersion $packageName local/$packageName
# Verify packages is present
brew search $packageName@
# Run brew install@version as usual
brew uninstall --ignore-dependencies $packageName
brew install local/$packageName/$packageName@$packageVersion
ln -s -f $(which python3) /usr/local/bin/python
ln -s -f $(which pip3) /usr/local/bin/pip
brew install pandoc
- name: Install dependencies
run: |
Expand Down
4 changes: 4 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path

import pytest
Expand All @@ -24,6 +25,9 @@
@pytest.mark.parametrize("no_input", no_input, ids=["no_input", ""])
class TestConvertPDF:
def test_to_pdf(self, document_name, filename, use, execute, no_input):
# skip this test if os is osx and use is latex
if use == "latex" and os.uname().system == "Darwin":
pytest.skip("Skip test for latex on osx")
convert(
filename,
to="pdf",
Expand Down

0 comments on commit 037db1a

Please sign in to comment.