Skip to content

Commit 4d51a06

Browse files
committed
ci: reverto to Python 3.13 and add workaround for torch vs PyQt
1 parent 1461c7a commit 4d51a06

File tree

7 files changed

+25
-4
lines changed

7 files changed

+25
-4
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ['3.12']
14+
python-version: ['3.13']
1515
os: [macos-latest, ubuntu-latest, windows-latest]
1616
deps: ["none", "all"]
1717
env:

.github/workflows/deploy_github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.12"]
18+
python-version: ["3.13"]
1919
os: [windows-latest]
2020
# os: [macos-latest, windows-latest]
2121
steps:

.github/workflows/deploy_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@main
1717
with:
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
0.9.0
22
- cli: add `compression` parameter
33
- setup: bump dcnum to 0.26.0 (separate writer process)
4-
- ci: run everything on Python 3.12
4+
- ci: run everything on Python 3.13
55
0.8.0
66
- fix: when user quits GUI during processing, forcibly kill all processes
77
- docs: add installation section

chipstream/gui/_main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# https://github.com/pytorch/pytorch/issues/166628
2+
# Import pytorch before PyQt6
3+
try:
4+
import torch # noqa: F401
5+
except ImportError:
6+
pass
7+
18
try:
29
import PyQt6
310
except ImportError:

tests/test_gui.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
from helper_methods import retrieve_data, retrieve_model
99

10+
# https://github.com/pytorch/pytorch/issues/166628
11+
# Import pytorch before PyQt6
12+
try:
13+
import torch # noqa: F401
14+
except ImportError:
15+
pass
16+
1017
pytest.importorskip("PyQt6")
1118

1219
from PyQt6 import QtCore, QtWidgets, QtTest # noqa: E402

tests/test_gui_manager.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010

1111
from helper_methods import retrieve_data, retrieve_model
1212

13+
# https://github.com/pytorch/pytorch/issues/166628
14+
# Import pytorch before PyQt6
15+
try:
16+
import torch # noqa: F401
17+
except ImportError:
18+
pass
19+
1320

1421
def test_manager_get_paths_out(tmp_path):
1522
path = retrieve_data(

0 commit comments

Comments
 (0)