From 699e50d489091272764bddfc28e0438f54a8d0d4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 00:34:30 +0000 Subject: [PATCH 1/3] chore(deps): update dependency astral-sh/uv to v0.11.19 --- .github/workflows/python-package.yml | 2 +- .github/workflows/python-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 742ec79..6a4bb3e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -24,7 +24,7 @@ jobs: uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python-version }} - version: 0.11.7 + version: 0.11.19 enable-cache: true cache-dependency-glob: "uv.lock" - name: Install the project diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8ba5e86..b9ad4ab 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -40,7 +40,7 @@ jobs: with: enable-cache: true cache-dependency-glob: "uv.lock" - version: 0.11.7 + version: 0.11.19 - name: Change Package Version run: | From 8e686963f1a929de413b9b29fc6df23de2a5e820 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 13:35:30 +0000 Subject: [PATCH 2/3] Skip HF pipeline test when offline --- tests/test_pipeline.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index fd1cc7c..8b7e8f2 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -2,6 +2,8 @@ import pytest import torch from sklearn.preprocessing import LabelEncoder +from urllib.error import URLError +from urllib.request import urlopen from torchTextClassifiers import ModelConfig, TrainingConfig, torchTextClassifiers from torchTextClassifiers.dataset import TextClassificationDataset @@ -32,6 +34,14 @@ ) +def _is_huggingface_reachable() -> bool: + try: + with urlopen("https://huggingface.co", timeout=5): + return True + except URLError: + return False + + @pytest.fixture def sample_data(): """Fixture providing sample data for all tests.""" @@ -292,6 +302,9 @@ def test_huggingface_tokenizer(sample_data, model_params): """Test the full pipeline with HuggingFaceTokenizer.""" sample_text_data, categorical_data, labels = sample_data + if not _is_huggingface_reachable(): + pytest.skip("Hugging Face is unreachable in this environment") + tokenizer = HuggingFaceTokenizer.load_from_pretrained( "google-bert/bert-base-uncased", output_dim=50 ) From 5fd8dfe6c5ae4a52d516b4e82735e20577cb6b07 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 13:36:51 +0000 Subject: [PATCH 3/3] Reduce HF reachability timeout in test --- tests/test_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index 8b7e8f2..810fbaa 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -36,7 +36,7 @@ def _is_huggingface_reachable() -> bool: try: - with urlopen("https://huggingface.co", timeout=5): + with urlopen("https://huggingface.co", timeout=3): return True except URLError: return False