refactor: move to popsummary format to store probs #2199
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| jobs: | |
| prek: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ">=1.25.4" | |
| - uses: j178/prek-action@v2 | |
| with: | |
| extra-args: --all-files | |
| test: | |
| needs: [prek] | |
| name: "build (py ${{ matrix.python-version }} on ${{ matrix.os }})" | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - "3.11" | |
| - "3.13" | |
| env: | |
| GWKOKAB_DEV_BUILD: 1 | |
| JAX_ARRAY: 1 | |
| JAX_ENABLE_X64: 1 | |
| JAX_PLATFORMS: "cpu" | |
| JAX_TRACEBACK_FILTERING: "off" | |
| PY_COLORS: 1 | |
| XLA_FLAGS: "--xla_force_host_platform_device_count=8" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: | | |
| uv sync \ | |
| --upgrade \ | |
| --extra cpu \ | |
| --group dev \ | |
| --group test | |
| uv pip freeze | |
| - name: Run tests | |
| run: | | |
| uv run pytest tests | |
| - name: Run build | |
| run: GWKOKAB_DEV_BUILD=0 uv build | |
| documentation: | |
| needs: [prek] | |
| name: Documentation | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.13" | |
| env: | |
| GWKOKAB_DEV_BUILD: 1 | |
| JAX_ARRAY: 1 | |
| JAX_ENABLE_X64: 1 | |
| JAX_PLATFORMS: "cpu" | |
| JAX_TRACEBACK_FILTERING: "off" | |
| PY_COLORS: 1 | |
| XLA_FLAGS: "--xla_force_host_platform_device_count=8" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync \ | |
| --upgrade \ | |
| --extra cpu \ | |
| --group dev \ | |
| --group doc \ | |
| --group test | |
| uv pip freeze | |
| - name: Test documentation | |
| run: | | |
| uv run pytest docs --tb=short --doctest-glob='*.md' --doctest-glob='*.rst' --doctest-continue-on-failure |