Skip to content

Fix .github folder

Fix .github folder #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
name: test (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Check out source
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install development dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Check formatting
run: ruff format --check src tests examples
- name: Lint
run: ruff check src tests examples
- name: Type check
run: mypy src/marginal
- name: Test
run: pytest -q
- name: Build distributions
run: python -m build
- name: Validate distributions
run: python -m twine check dist/*