Recipes¶
Worked-example workflows for common shapes. Most recipes run as-is on ubuntu-latest against astro-tools/setup-gmat@v0 — no external dependencies, no secret-gated steps. Copy, adapt, ship.
- Run pytest against gmatpy — install GMAT and run a
pytestsuite whose testsimport gmatpy. SetsPYTHONPATHon the test step. - Run a mission script and upload its report — drive a
.scriptfile viagmatpy.LoadScript/RunScriptfrom Python, write a report, and upload it as a build artifact. - Skip the GMAT install on docs-only changes — use
paths-ignoreto keep the heavy install off PRs that only touch READMEs ordocs/. Includes the inversepathsfilter for docs-only jobs. - Validate against every GMAT version on every OS — a
{ubuntu, windows, macos} × {R2022a, R2025a, R2026a}matrix withfail-fast: falseandmatrix.excludefor the unsupportedmacos × R2022acombo. - Run jobs in the GMAT container image — use
ghcr.io/astro-tools/gmat:Rxxxxaas ajobs.*.container.imageinstead of running the action; trades cross-OS coverage andactions/setup-pythonflexibility for a pre-warmed environment.
For the underlying mechanics each recipe builds on, see Getting started, Inputs and outputs, and Troubleshooting.