Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
d8c7ee00
Unverified
Commit
d8c7ee00
authored
Jul 20, 2020
by
Henry Schreiner
Committed by
GitHub
Jul 20, 2020
Browse files
ci: GHA basic format & pre-commit (#2309)
parent
e2488698
Changes
60
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
22 additions
and
2 deletions
+22
-2
tests/test_call_policies.py
tests/test_call_policies.py
+1
-0
tests/test_callbacks.py
tests/test_callbacks.py
+1
-0
tests/test_chrono.py
tests/test_chrono.py
+1
-0
tests/test_class.py
tests/test_class.py
+1
-0
tests/test_cmake_build/test.py
tests/test_cmake_build/test.py
+1
-0
tests/test_constants_and_functions.py
tests/test_constants_and_functions.py
+1
-0
tests/test_copy_move.py
tests/test_copy_move.py
+1
-0
tests/test_custom_type_casters.py
tests/test_custom_type_casters.py
+1
-0
tests/test_docstring_options.py
tests/test_docstring_options.py
+1
-0
tests/test_eigen.py
tests/test_eigen.py
+3
-2
tests/test_embed/test_interpreter.py
tests/test_embed/test_interpreter.py
+1
-0
tests/test_enum.py
tests/test_enum.py
+1
-0
tests/test_eval.py
tests/test_eval.py
+1
-0
tests/test_eval_call.py
tests/test_eval_call.py
+1
-0
tests/test_exceptions.py
tests/test_exceptions.py
+1
-0
tests/test_factory_constructors.py
tests/test_factory_constructors.py
+1
-0
tests/test_gil_scoped.py
tests/test_gil_scoped.py
+1
-0
tests/test_iostream.py
tests/test_iostream.py
+1
-0
tests/test_kwargs_and_defaults.py
tests/test_kwargs_and_defaults.py
+1
-0
tests/test_local_bindings.py
tests/test_local_bindings.py
+1
-0
No files found.
tests/test_call_policies.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
call_policies
as
m
from
pybind11_tests
import
call_policies
as
m
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
...
tests/test_callbacks.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
callbacks
as
m
from
pybind11_tests
import
callbacks
as
m
from
threading
import
Thread
from
threading
import
Thread
...
...
tests/test_chrono.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
chrono
as
m
from
pybind11_tests
import
chrono
as
m
import
datetime
import
datetime
...
...
tests/test_class.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
class_
as
m
from
pybind11_tests
import
class_
as
m
...
...
tests/test_cmake_build/test.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
sys
import
sys
import
test_cmake_build
import
test_cmake_build
...
...
tests/test_constants_and_functions.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
constants_and_functions
as
m
from
pybind11_tests
import
constants_and_functions
as
m
...
...
tests/test_copy_move.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
copy_move_policies
as
m
from
pybind11_tests
import
copy_move_policies
as
m
...
...
tests/test_custom_type_casters.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
custom_type_casters
as
m
from
pybind11_tests
import
custom_type_casters
as
m
...
...
tests/test_docstring_options.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
docstring_options
as
m
from
pybind11_tests
import
docstring_options
as
m
...
...
tests/test_eigen.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
ConstructorStats
from
pybind11_tests
import
ConstructorStats
...
@@ -143,7 +144,7 @@ def test_nonunit_stride_from_python():
...
@@ -143,7 +144,7 @@ def test_nonunit_stride_from_python():
counting_3d
=
np
.
arange
(
27.0
,
dtype
=
np
.
float32
).
reshape
((
3
,
3
,
3
))
counting_3d
=
np
.
arange
(
27.0
,
dtype
=
np
.
float32
).
reshape
((
3
,
3
,
3
))
slices
=
[
counting_3d
[
0
,
:,
:],
counting_3d
[:,
0
,
:],
counting_3d
[:,
:,
0
]]
slices
=
[
counting_3d
[
0
,
:,
:],
counting_3d
[:,
0
,
:],
counting_3d
[:,
:,
0
]]
for
slice_idx
,
ref_mat
in
enumerate
(
slices
)
:
for
ref_mat
in
slices
:
np
.
testing
.
assert_array_equal
(
m
.
double_mat_cm
(
ref_mat
),
2.0
*
ref_mat
)
np
.
testing
.
assert_array_equal
(
m
.
double_mat_cm
(
ref_mat
),
2.0
*
ref_mat
)
np
.
testing
.
assert_array_equal
(
m
.
double_mat_rm
(
ref_mat
),
2.0
*
ref_mat
)
np
.
testing
.
assert_array_equal
(
m
.
double_mat_rm
(
ref_mat
),
2.0
*
ref_mat
)
...
@@ -172,7 +173,7 @@ def test_negative_stride_from_python(msg):
...
@@ -172,7 +173,7 @@ def test_negative_stride_from_python(msg):
counting_3d
=
np
.
arange
(
27.0
,
dtype
=
np
.
float32
).
reshape
((
3
,
3
,
3
))
counting_3d
=
np
.
arange
(
27.0
,
dtype
=
np
.
float32
).
reshape
((
3
,
3
,
3
))
counting_3d
=
counting_3d
[::
-
1
,
::
-
1
,
::
-
1
]
counting_3d
=
counting_3d
[::
-
1
,
::
-
1
,
::
-
1
]
slices
=
[
counting_3d
[
0
,
:,
:],
counting_3d
[:,
0
,
:],
counting_3d
[:,
:,
0
]]
slices
=
[
counting_3d
[
0
,
:,
:],
counting_3d
[:,
0
,
:],
counting_3d
[:,
:,
0
]]
for
slice_idx
,
ref_mat
in
enumerate
(
slices
)
:
for
ref_mat
in
slices
:
np
.
testing
.
assert_array_equal
(
m
.
double_mat_cm
(
ref_mat
),
2.0
*
ref_mat
)
np
.
testing
.
assert_array_equal
(
m
.
double_mat_cm
(
ref_mat
),
2.0
*
ref_mat
)
np
.
testing
.
assert_array_equal
(
m
.
double_mat_rm
(
ref_mat
),
2.0
*
ref_mat
)
np
.
testing
.
assert_array_equal
(
m
.
double_mat_rm
(
ref_mat
),
2.0
*
ref_mat
)
...
...
tests/test_embed/test_interpreter.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
widget_module
import
Widget
from
widget_module
import
Widget
...
...
tests/test_enum.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
enums
as
m
from
pybind11_tests
import
enums
as
m
...
...
tests/test_eval.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
os
import
os
import
pytest
import
pytest
from
pybind11_tests
import
eval_
as
m
from
pybind11_tests
import
eval_
as
m
...
...
tests/test_eval_call.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
# This file is called from 'test_eval.py'
# This file is called from 'test_eval.py'
if
'call_test2'
in
locals
():
if
'call_test2'
in
locals
():
...
...
tests/test_exceptions.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
exceptions
as
m
from
pybind11_tests
import
exceptions
as
m
...
...
tests/test_factory_constructors.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
import
re
import
re
...
...
tests/test_gil_scoped.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
multiprocessing
import
multiprocessing
import
threading
import
threading
from
pybind11_tests
import
gil_scoped
as
m
from
pybind11_tests
import
gil_scoped
as
m
...
...
tests/test_iostream.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
from
pybind11_tests
import
iostream
as
m
from
pybind11_tests
import
iostream
as
m
import
sys
import
sys
...
...
tests/test_kwargs_and_defaults.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
kwargs_and_defaults
as
m
from
pybind11_tests
import
kwargs_and_defaults
as
m
...
...
tests/test_local_bindings.py
View file @
d8c7ee00
# -*- coding: utf-8 -*-
import
pytest
import
pytest
from
pybind11_tests
import
local_bindings
as
m
from
pybind11_tests
import
local_bindings
as
m
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment