Commit b6ea623
authored
Add gmatpy smoke check via stock GMAT sample (#23)
- New src/smoke.ts exporting smoke(gmatRoot, pythonVersion?). Resolves python via @actions/io's which('python', true) — a missing binary throws a typed error pointing at actions/setup-python@v5.
- Runs python -c "..." that bootstraps gmatpy from ${gmatRoot}/bin, calls gmat.Setup against api_startup_file.txt, loads samples/Ex_HighFidelitySRP.script, and asserts gmat.RunScript returns 1 (GMAT's success code).
- @actions/exec.exec streams stdout/stderr live to the workflow log and throws on non-zero exit. Failures are wrapped with the sample path and GMAT_ROOT for the action's failure summary.
- Sample choice: Ex_HighFidelitySRP.script — smallest stock sample with Propagate, no Subscribers, header reports Released: R2014a so it ships in every supported version.
- Not yet wired into install.ts.
Closes #81 parent 10c199e commit b6ea623
1 file changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments