new sampler: drghmc #111
This file contains 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: 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 |