Parameter wise non centered #150
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: Run CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "bambi/**" | |
| - "tests/**" | |
| - ".github/workflows/ci.yml" | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - "bambi/**" | |
| - "tests/**" | |
| - ".github/workflows/ci.yml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| pixi-env: ["py312", "py313"] | |
| 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.9.2 | |
| with: | |
| pixi-version: v0.62.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 -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@v2 | |
| with: | |
| env_vars: OS,PYTHON | |
| name: codecov-umbrella | |
| fail_ci_if_error: false |