Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ runs:
python -c "import torch; print('PyTorch:', torch.__version__)"
python -c "import torch; print('CUDA:', torch.version.cuda)"
shell: bash

# TODO: Include catboost in Python 3.14 CI when catboost supports it:
# https://github.com/catboost/catboost/issues/2943
- name: Exclude catboost on Python 3.14 from pyproject.toml
if: ${{ inputs.python-version == '3.14' }}
run: |
sed -i '/ "catboost",/d' pyproject.toml
cat pyproject.toml
shell: bash
21 changes: 16 additions & 5 deletions test/gbdt/test_gbdt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os.path as osp
import sys
import tempfile

import pytest
Expand All @@ -12,11 +13,21 @@
from torch_frame.testing.text_embedder import HashTextEmbedder


@pytest.mark.parametrize('gbdt_cls', [
CatBoost,
XGBoost,
LightGBM,
])
@pytest.mark.parametrize(
'gbdt_cls',
[
# TODO: Run CatBoost test on Python 3.14 once supported
# https://github.com/catboost/catboost/issues/2943
pytest.param(
CatBoost,
marks=pytest.mark.skipif(
sys.version_info >= (3, 14),
reason="Not supported on Python 3.14",
),
),
XGBoost,
LightGBM,
])
@pytest.mark.parametrize('stypes', [
[stype.numerical],
[stype.categorical],
Expand Down
Loading