Skip to content

Bambi rewrite

Bambi rewrite #207

Workflow file for this run

name: Run CI
on:
push:
branches:
- main
paths:
- "bambi/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/ci.yml"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "bambi/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/ci.yml"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
pixi-env: ["py312", "py313", "py314"]
pytensor-linker: ["cvm", "numba"]
name: CI on ${{ matrix.pixi-env }} | ${{ matrix.pytensor-linker }}
steps:
- name: Checkout source
uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: prefix-dev/setup-pixi@v0.10.1
with:
pixi-version: v0.76.2
environments: ${{ matrix.pixi-env }}
- name: Run pre-commit checks
run: pixi run -e ${{ matrix.pixi-env }} pre-commit run --all
- name: Run pylint
run: pixi run -e ${{ matrix.pixi-env }} pylint bambi
- name: Run tests with Coverage
env:
PYTENSOR_FLAGS: linker=${{ matrix.pytensor-linker }}
run: pixi run -e ${{ matrix.pixi-env }} pytest --forked -vv --cov=bambi --cov-report=term --cov-report=xml tests
- name: Check Coverage Report
run: pixi run -e ${{ matrix.pixi-env }} coverage report -m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false