ci: add GitHub Actions to run tests + smoke quickstart (py3.10/3.11) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.10', '3.11'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install test/deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pyyaml | |
| - name: Run unit tests | |
| run: | | |
| pytest -q | |
| - name: Quickstart smoke (scene → nudge → plan → safety) | |
| run: | | |
| python examples/quickstart.py --scene sim/scenes/basic_room.json --verbose |