Add Optional CrapsSim Engine API (External Control + Full Test Parity) #11
Workflow file for this run
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: CrapsSim Engine API CI | |
| on: | |
| push: | |
| paths: | |
| - "crapssim_api/**" | |
| - ".github/workflows/api-engine-ci.yml" | |
| pull_request: | |
| paths: | |
| - "crapssim_api/**" | |
| - ".github/workflows/api-engine-ci.yml" | |
| workflow_dispatch: | |
| jobs: | |
| api-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies (engine + API) | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Core engine in editable mode | |
| pip install -e . | |
| # Engine API + dev/gauntlet extras (defined under crapssim_api/) | |
| pip install -e ./crapssim_api[api,dev,gauntlet] | |
| - name: Run API unit tests | |
| run: | | |
| PYTHONPATH=. pytest -q crapssim_api/tests | |
| - name: Run API sequence/gauntlet stress tests (short) | |
| run: | | |
| PYTHONPATH=. pytest -q crapssim_api/tests/stress/test_api_sequences.py |