Skip to content

new sampler: drghmc #111

new sampler: drghmc

new sampler: drghmc #111

Workflow file for this run

name: bayes-kit tests
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch: {}
jobs:
test_package:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
fail-fast: false
steps:
- name: Check out github
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
pip install -e .[test]
- name: Formatting and type checking
if: matrix.python-version == '3.11'
run: |
pip install mypy black isort
isort --check-only .
black --check .
mypy --strict .
- name: Run tests
run: |
pytest -v --cov=bayes_kit test/
- name: Upload codecoverage
continue-on-error: true
run: |
pip install codecov
codecov