jiffy / ci /github-actions.yml
kidzik's picture
Release Jiffy v0.1.0 experimental inference adapter
90d3e4b verified
Raw History Blame Contribute Delete
720 Bytes
# Copy to .github/workflows/ci.yml with a workflow-authorized GitHub token.
name: Tests
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
cpu:
runs-on: ubuntu-latest
env:
HF_HUB_OFFLINE: "1"
TRANSFORMERS_OFFLINE: "1"
OMP_NUM_THREADS: "1"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
- run: python -m pip install torch==2.13.0 torchvision==0.28.0 --index-url https://download.pytorch.org/whl/cpu
- run: python -m pip install -e '.[dev]'
- run: python -m unittest discover -s tests -v
- run: jiffy --help
- run: python -m build