Skip to content

✨ test also on Windows and Mac (some formatting) #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/cdci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions src/vuegen/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down