diff --git a/.github/workflows/cdci.yml b/.github/workflows/cdci.yml index 13652a9..58aee99 100644 --- a/.github/workflows/cdci.yml +++ b/.github/workflows/cdci.yml @@ -12,9 +12,10 @@ on: jobs: test: name: Unittests+streamlit - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: ["ubuntu-latest"] # test only on ubuntu basic tests, but run integration on all platforms python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -51,9 +52,10 @@ jobs: other-reports: name: Integration tests - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: + os: ["ubuntu-latest", "macos-13", "macos-latest", "windows-latest"] python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/src/vuegen/utils/__init__.py b/src/vuegen/utils/__init__.py index 86c638b..4952d2d 100644 --- a/src/vuegen/utils/__init__.py +++ b/src/vuegen/utils/__init__.py @@ -816,6 +816,23 @@ def get_logger( return logger, log_file +def strip_unicode(text: str) -> str: + """ + Strip Unicode characters from the given text. + + Parameters + ---------- + text : str + The input text from which to strip Unicode characters. + + Returns + ------- + str + The text with Unicode characters removed. + """ + return "".join(c for c in text if ord(c) < 128) + + def get_completion_message(report_type: str, config_path: str) -> str: """ Generate a formatted completion message after report generation.