@@ -84,39 +84,39 @@ jobs:
8484 ls -la dist/
8585 python -m pip install dist/*.whl
8686 python -c "
87- import qector_decoder_v3 as qd
88- print('Version:', qd.__version__)
89- print('FastUF:', hasattr(qd, 'FastUnionFindDecoder'))
90- print('Blossom:', hasattr(qd, 'BlossomDecoder'))
91- print('Batch:', hasattr(qd, 'BatchDecoder'))
92- print('CUDA:', hasattr(qd, 'CUDABatchDecoder'))
93- print('OpenCL:', hasattr(qd, 'OpenCLBatchDecoder'))
94- print('gRPC:', hasattr(qd, 'run_grpc_server'))
95- print('MCP:', hasattr(qd, 'run_mcp_server'))
96- "
87+ import qector_decoder_v3 as qd
88+ print('Version:', qd.__version__)
89+ print('FastUF:', hasattr(qd, 'FastUnionFindDecoder'))
90+ print('Blossom:', hasattr(qd, 'BlossomDecoder'))
91+ print('Batch:', hasattr(qd, 'BatchDecoder'))
92+ print('CUDA:', hasattr(qd, 'CUDABatchDecoder'))
93+ print('OpenCL:', hasattr(qd, 'OpenCLBatchDecoder'))
94+ print('gRPC:', hasattr(qd, 'run_grpc_server'))
95+ print('MCP:', hasattr(qd, 'run_mcp_server'))
96+ "
9797 shell : bash
9898
9999 - name : Test wheel in clean venv
100100 run : |
101101 python -m venv .venv_test
102102 .venv_test/bin/pip install dist/*.whl
103103 .venv_test/bin/python -c "
104- import qector_decoder_v3 as qd
105- import numpy as np
106- # Test core decoders
107- dec = qd.FastUnionFindDecoder([[0,1]], 2)
108- corr = dec.decode(np.array([1], dtype=np.uint8))
109- print('FastUF decode:', corr)
110- # Test Blossom
111- dec2 = qd.BlossomDecoder([[0,1,2,3]], 4)
112- corr2 = dec2.decode(np.array([1], dtype=np.uint8))
113- print('Blossom decode:', corr2)
114- # Test Batch
115- dec3 = qd.BatchDecoder([[0,1]], 2)
116- corr3 = dec3.batch_decode(np.array([[1]], dtype=np.uint8))
117- print('Batch decode:', corr3)
118- print('All decoder tests passed')
119- "
104+ import qector_decoder_v3 as qd
105+ import numpy as np
106+ # Test core decoders
107+ dec = qd.FastUnionFindDecoder([[0,1]], 2)
108+ corr = dec.decode(np.array([1], dtype=np.uint8))
109+ print('FastUF decode:', corr)
110+ # Test Blossom
111+ dec2 = qd.BlossomDecoder([[0,1,2,3]], 4)
112+ corr2 = dec2.decode(np.array([1], dtype=np.uint8))
113+ print('Blossom decode:', corr2)
114+ # Test Batch
115+ dec3 = qd.BatchDecoder([[0,1]], 2)
116+ corr3 = dec3.batch_decode(np.array([[1]], dtype=np.uint8))
117+ print('Batch decode:', corr3)
118+ print('All decoder tests passed')
119+ "
120120 shell : bash
121121
122122 - name : Upload wheel artifact
0 commit comments