Skip to content

Commit 435ea9d

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Set CMAKE_ARGS for CI and add more pytest (#3693)
Summary: Add more pytest. Set CMAKE_ARGS correctly for CI. Build quantized kernel as well. Pull Request resolved: #3693 Reviewed By: shoumikhin Differential Revision: D57649074 Pulled By: kirklandsign fbshipit-source-id: b181e55e9f17c8d3f7c750219ddcdd4fc9122085
1 parent 16a892d commit 435ea9d

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/_unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Setup MacOS dependencies as there is no Docker support on MacOS atm
3838
PYTHON_EXECUTABLE=python \
3939
EXECUTORCH_BUILD_PYBIND=ON \
40-
EXECUTORCH_BUILD_XNNPACK=ON \
40+
CMAKE_ARGS="-DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
4141
.ci/scripts/setup-linux.sh "${BUILD_TOOL}"
4242
4343
# Run pytest with coverage
@@ -64,7 +64,7 @@ jobs:
6464
# Setup MacOS dependencies as there is no Docker support on MacOS atm
6565
PYTHON_EXECUTABLE=python \
6666
EXECUTORCH_BUILD_PYBIND=ON \
67-
CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
67+
CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
6868
${CONDA_RUN} --no-capture-output \
6969
.ci/scripts/setup-macos.sh "${BUILD_TOOL}"
7070

exir/_serialize/test/__init__.py

Whitespace-only changes.

exir/program/test/__init__.py

Whitespace-only changes.

pytest.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ addopts =
1717
sdk/etrecord
1818
sdk/inspector
1919
# exir
20+
exir/_serialize/test
2021
exir/backend/test/test_graph_partition.py
2122
exir/backend/test/test_backends_nested.py
2223
exir/backend/test/test_debug_handle_map.py
2324
exir/backend/test/test_delegate_map_builder.py
24-
exir/dialects/edge/test/test_edge_ops.py
25-
exir/dialects/test/test_exir_dialect_ops.py
25+
exir/dialects/edge/test
26+
exir/dialects/test
2627
exir/tests/test_arg_validator.py
2728
exir/tests/test_capture.py
2829
exir/tests/test_delegate.py
@@ -32,7 +33,7 @@ addopts =
3233
exir/tests/test_pass_infra.py
3334
exir/tests/test_tensor.py
3435
# kernels/
35-
kernels/prim_ops/test/prim_ops_test.py
36+
kernels/prim_ops/test
3637
kernels/test/test_case_gen.py
3738
# backends/arm
3839
backends/arm/test

0 commit comments

Comments
 (0)