Skip to content

Format types module with Black #32

Format types module with Black

Format types module with Black #32

Workflow file for this run

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