chore: import upstream snapshot with attribution
Publish SDK (PyPI) / publish (push) Has been cancelled
Publish SDK (npm) / publish (@aionui/officecli-sdk) (push) Has been cancelled
SDK smoke / smoke (windows-latest) (push) Has been cancelled
Publish SDK (npm) / publish (@officecli/officecli-sdk) (push) Has been cancelled
Publish SDK (npm) / publish (@officecli/sdk) (push) Has been cancelled
Publish SDK (npm) / publish (officecli-sdk) (push) Has been cancelled
SDK smoke / smoke (macos-latest) (push) Has been cancelled
SDK smoke / smoke (ubuntu-latest) (push) Has been cancelled
Skill parity / diff (push) Has been cancelled
Publish SDK (PyPI) / publish (push) Has been cancelled
Publish SDK (npm) / publish (@aionui/officecli-sdk) (push) Has been cancelled
SDK smoke / smoke (windows-latest) (push) Has been cancelled
Publish SDK (npm) / publish (@officecli/officecli-sdk) (push) Has been cancelled
Publish SDK (npm) / publish (@officecli/sdk) (push) Has been cancelled
Publish SDK (npm) / publish (officecli-sdk) (push) Has been cancelled
SDK smoke / smoke (macos-latest) (push) Has been cancelled
SDK smoke / smoke (ubuntu-latest) (push) Has been cancelled
Skill parity / diff (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""CI smoke test (not shipped — pyproject ships only officecli.py). On a runner
|
||||
without officecli on PATH, create() triggers auto_install (install.sh on unix,
|
||||
install.ps1 on Windows), proving the cross-platform provisioning + the pipe
|
||||
round-trip end to end. Exits non-zero on any failure."""
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import officecli # noqa: E402
|
||||
|
||||
f = os.path.join(tempfile.gettempdir(), f"officecli-smoke-{os.getpid()}.xlsx")
|
||||
d = officecli.create(f, "--force")
|
||||
d.send({"command": "set", "path": "/Sheet1/A1", "props": {"text": "smoke-ok"}})
|
||||
g = d.send({"command": "get", "path": "/Sheet1/A1"})
|
||||
d.close()
|
||||
try:
|
||||
os.unlink(f)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
if "smoke-ok" not in str(g):
|
||||
print("python SDK smoke FAIL: A1 mismatch", g)
|
||||
sys.exit(1)
|
||||
print("python SDK smoke PASS")
|
||||
Reference in New Issue
Block a user