Skip to content

Add tutorial and README badges #17

Add tutorial and README badges

Add tutorial and README badges #17

name: GitHub Actions - MAMMAL
on:
pull_request:
branches: [ "main" ]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -q .[examples]
pip install pre-commit
- name: Pre-Commit Hooks
run: |
pre-commit install
pre-commit run --all-files --show-diff-on-failure
- name: Test with pytest
run: |
python -m pytest --capture=no mammal/examples/tests/test_simple_inference.py