Merge pull request #133 from nova-rey/codex/document-engine-api-compa… #191
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - "crapssim_api/**" | |
| - ".github/workflows/ci.yml" | |
| pull_request: | |
| paths: | |
| - "crapssim_api/**" | |
| - ".github/workflows/ci.yml" | |
| jobs: | |
| lint-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff black | |
| - name: Lint and format API | |
| run: | | |
| ruff check crapssim_api | |
| black --check crapssim_api |