Skip to content

Commit 432e96c

Browse files
committed
fix: YAML syntax in release.yml (multiline string indentation), add master branch to CI triggers
1 parent 2b11c59 commit 432e96c

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [main, release/*]
5+
branches: [main, master, release/*]
66
pull_request:
7-
branches: [main]
7+
branches: [main, master]
88

99
env:
1010
CARGO_TERM_COLOR: always

.github/workflows/release.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)