Skip to content
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

python/ci: adjust CI testing for python 3.8 #5782

Merged
merged 8 commits into from
Dec 20, 2024
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
5 changes: 3 additions & 2 deletions .github/workflows/positron-python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ jobs:
strategy:
matrix:
include:
- os: 'ubuntu-latest'
python: '3.8'
- os: 'macos-latest'
python: '3.9'
- os: 'windows-latest'
Expand All @@ -159,6 +157,9 @@ jobs:
python: '3.11'
- os: 'ubuntu-latest'
python: '3.12'
# add in 3.13 when ibis-framework[duckdb] supports it
# - os: 'ubuntu-latest'
# python: '3.13'

steps:
- name: Checkout
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/positron-python-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
python: '3.11'
- os: 'ubuntu-latest'
python: '3.12'
# add in 3.13 when ibis-framework[duckdb] supports it
# - os: 'ubuntu-latest'
# python: '3.13'


steps:
- name: Checkout
Expand Down Expand Up @@ -94,6 +98,10 @@ jobs:
python: '3.11'
- os: 'ubuntu-latest'
python: '3.12'
# add in 3.13 when ibis-framework[duckdb] supports it
# - os: 'ubuntu-latest'
# python: '3.13'


steps:
- name: Checkout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def get_display_value(
"edgeitems": ARRAY_EDGEITEMS,
"linewidth": print_width,
}
options_obj = torch._tensor_str.PRINT_OPTS
options_obj = torch._tensor_str.PRINT_OPTS # type: ignore[reportGeneralTypeIssues]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these errors were generated in CI, but _tensor_str does seem to exist and is tested

original_options = {k: getattr(options_obj, k) for k in new_options}

torch.set_printoptions(**new_options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def test_set_console_width(ui_comm: DummyComm) -> None:
assert np.get_printoptions()["linewidth"] == width
assert pd.get_option("display.width") is None
assert pl.Config.state()["POLARS_TABLE_WIDTH"] == str(width)
if torch is not None: # temporary workaround for Python 3.12
assert torch._tensor_str.PRINT_OPTS.linewidth == width
assert torch._tensor_str.PRINT_OPTS.linewidth == width # type: ignore[reportGeneralTypeIssues]


def test_open_editor(ui_service: UiService, ui_comm: DummyComm) -> None:
Expand Down
Loading