Skip to content

Commit 0300f1a

Browse files
authored
Merge pull request #265 from JohanMabille/ci_2025
Ugraded GHA images
2 parents 3fe6a48 + cf60c05 commit 0300f1a

File tree

7 files changed

+40
-22
lines changed

7 files changed

+40
-22
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
29+
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
3030

3131
steps:
3232
- uses: actions/checkout@v4
@@ -79,7 +79,7 @@ jobs:
7979
strategy:
8080
fail-fast: false
8181
matrix:
82-
os: [windows-2019, windows-2022]
82+
os: [windows-2022, windows-2025]
8383

8484
steps:
8585
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -16,27 +16,27 @@ repos:
1616
- id: detect-private-key
1717
- id: check-merge-conflict
1818
- repo: https://github.com/Lucas-C/pre-commit-hooks
19-
rev: v1.3.1
19+
rev: v1.5.5
2020
hooks:
2121
- id: forbid-tabs
2222
- id: remove-tabs
2323
args: [--whitespaces-count, '4']
2424
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
25-
rev: v2.5.0
25+
rev: v2.15.0
2626
hooks:
2727
- id: pretty-format-yaml
2828
args: [--autofix, --indent, '2']
2929
- repo: https://github.com/tdegeus/cpp_comment_format
30-
rev: v0.2.0
30+
rev: v0.2.1
3131
hooks:
3232
- id: cpp_comment_format
3333
- repo: https://github.com/tdegeus/conda_envfile
34-
rev: v0.4.2
34+
rev: v0.5.2
3535
hooks:
3636
- id: conda_envfile_parse
3737
files: environment.yaml
3838
- repo: https://github.com/pre-commit/mirrors-clang-format
39-
rev: v15.0.7
39+
rev: v20.1.8
4040
hooks:
4141
- id: clang-format
4242
files: .*\.[hc]pp$
@@ -45,6 +45,6 @@ repos:
4545
hooks:
4646
- id: cmake-format
4747
- repo: https://github.com/python-jsonschema/check-jsonschema
48-
rev: 0.20.0
48+
rev: 0.33.2
4949
hooks:
5050
- id: check-github-workflows

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# ~~~
88

9-
cmake_minimum_required(VERSION 3.8)
9+
cmake_minimum_required(VERSION 3.24)
1010
project(xwidgets)
1111

1212
set(XWIDGETS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)

include/xwidgets/xcommon.hpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,13 @@ namespace xw
9494
*/
9595
static std::optional<bool> global_echo_update();
9696

97-
bool
98-
same_patch(const std::string&, const nl::json&, const xeus::buffer_sequence&, const nl::json&, const xeus::buffer_sequence&)
99-
const;
97+
bool same_patch(
98+
const std::string&,
99+
const nl::json&,
100+
const xeus::buffer_sequence&,
101+
const nl::json&,
102+
const xeus::buffer_sequence&
103+
) const;
100104

101105
bool m_moved_from;
102106
const xeus::xmessage* m_hold;

include/xwidgets/xcontroller.hpp

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,21 @@ namespace xw
259259
template <class D>
260260
inline void xcontroller<D>::register_control_types()
261261
{
262-
get_xfactory()
263-
.register_maker("@jupyter-widgets/controls", "ControllerAxisModel", "@jupyter-widgets/controls", "ControllerAxisView", xmaker<xcontroller_axis>);
264-
265-
get_xfactory()
266-
.register_maker("@jupyter-widgets/controls", "ControllerButtonModel", "@jupyter-widgets/controls", "ControllerButtonView", xmaker<xcontroller_button>);
262+
get_xfactory().register_maker(
263+
"@jupyter-widgets/controls",
264+
"ControllerAxisModel",
265+
"@jupyter-widgets/controls",
266+
"ControllerAxisView",
267+
xmaker<xcontroller_axis>
268+
);
269+
270+
get_xfactory().register_maker(
271+
"@jupyter-widgets/controls",
272+
"ControllerButtonModel",
273+
"@jupyter-widgets/controls",
274+
"ControllerButtonView",
275+
xmaker<xcontroller_button>
276+
);
267277
}
268278

269279
/*********************

src/xcommon.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,13 @@ namespace xw
287287
return out;
288288
}
289289

290-
bool
291-
xcommon::same_patch(const std::string& name, const nl::json& j1, const xeus::buffer_sequence&, const nl::json& j2, const xeus::buffer_sequence&)
292-
const
290+
bool xcommon::same_patch(
291+
const std::string& name,
292+
const nl::json& j1,
293+
const xeus::buffer_sequence&,
294+
const nl::json& j2,
295+
const xeus::buffer_sequence&
296+
) const
293297
{
294298
const auto& paths = buffer_paths();
295299
// For a widget with no binary buffer, compare the patches

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# ~~~
88

9-
cmake_minimum_required(VERSION 3.8)
9+
cmake_minimum_required(VERSION 3.24)
1010

1111
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
1212
project(xwidgets-test)

0 commit comments

Comments
 (0)