[NRCL-67] Add versioned cross-runtime contract bundle #155
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: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Sync dependencies | |
| run: uv sync --extra dev | |
| - name: Lint | |
| run: | | |
| uv run ruff --version | |
| uv run ruff check . | |
| uv run black --check . | |
| - name: Type check | |
| run: | | |
| uv run mypy --version | |
| uv run mypy neural | |
| - name: Run tests | |
| env: | |
| KALSHI_EMAIL: ${{ secrets.KALSHI_EMAIL || '' }} | |
| KALSHI_PASSWORD: ${{ secrets.KALSHI_PASSWORD || '' }} | |
| KALSHI_API_BASE: ${{ secrets.KALSHI_API_BASE || 'https://api.elections.kalshi.com' }} | |
| run: uv run pytest -q |