Skip to content

readme: static guarantee plot back in the hero, gif below it #111

readme: static guarantee plot back in the hero, gif below it

readme: static guarantee plot back in the hero, gif below it #111

Workflow file for this run

name: Tests
on:
push:
branches: [main, develop]
tags: ["v*"]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,datasets,examples]"
- name: Run tests
run: |
pytest tests/ -v --cov=bayes_hdc --cov-report=xml --cov-report=term-missing \
-m "not network" -k "not benchmark"
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,datasets,examples]"
- name: Lint with ruff
run: |
ruff check bayes_hdc/ tests/ examples/ benchmarks/
- name: Check formatting with ruff
run: |
ruff format --check bayes_hdc/ tests/ examples/ benchmarks/
- name: Type check with mypy
run: |
mypy bayes_hdc/ --ignore-missing-imports
continue-on-error: true