Skip to content

Commit

Permalink
Merge pull request #287 from ales-erjavec/ci/python3.12
Browse files Browse the repository at this point in the history
[CI] Add  Python 3.12 to CI tests
  • Loading branch information
janezd committed Oct 20, 2023
2 parents 577aa0c + 8e8b5a9 commit 1681d5e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/run-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ jobs:
matrix:
include:
# Linux
- os: ubuntu-20.04
python-version: 3.7
test-env: "PyQt5~=5.9.2 qasync<0.19.0"

- os: ubuntu-20.04
python-version: 3.8
test-env: "PyQt5~=5.12.0"
Expand Down Expand Up @@ -54,6 +50,10 @@ jobs:
test-env: "PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0"
extra-system-packages: "glibc-tools"

- os: ubuntu-22.04
python-version: "3.12"
test-env: "PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0"
extra-system-packages: "glibc-tools"

# macOS
- os: macos-11
Expand All @@ -80,11 +80,11 @@ jobs:
python-version: "3.11"
test-env: "PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0"

# Windows
- os: windows-2019
python-version: 3.7
test-env: "PyQt5~=5.9.2"
- os: macos-12
python-version: "3.12"
test-env: "PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0"

# Windows
- os: windows-2019
python-version: 3.8
test-env: "PyQt5~=5.12.0"
Expand All @@ -109,6 +109,10 @@ jobs:
python-version: "3.11"
test-env: "PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0"

- os: windows-2019
python-version: "3.12"
test-env: "PyQt6~=6.5.0 PyQt6-Qt6~=6.5.0"

steps:
- uses: actions/checkout@v3
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion orangecanvas/application/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_run(self):
self.assertEqual(res, 42)

@with_patched_main_application
def test_run(self):
def test_run_with_file(self):
m = Main()
with patch.object(self.app, "exec", lambda: 42), \
patch.object(CanvasMainWindow, "open_scheme_file", Mock()), \
Expand Down
2 changes: 1 addition & 1 deletion orangecanvas/gui/windowlistmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def instance() -> "WindowListManager":
def __init__(self, *args, **kwargs):
if self.__instance is not None:
raise RuntimeError
WindowListManager.__instance = self
super().__init__(*args, **kwargs)
WindowListManager.__instance = self
self.__group = QActionGroup(
self, objectName="window-list-manager-action-group"
)
Expand Down

0 comments on commit 1681d5e

Please sign in to comment.