Skip to content

- Introducing initial inference API. Subject to change, will likley m… #35

- Introducing initial inference API. Subject to change, will likley m…

- Introducing initial inference API. Subject to change, will likley m… #35

Workflow file for this run

name: CI
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -e .[dev]
- name: Check formatting with black
run: |
black --check .
- name: Download test data
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
python scripts/download_hest.py --id TENX29 --skip-wsis --skip-patches --yes
- name: Test with pytest
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
pytest tests/