Download ci/github-actions.yml from kidzik/jiffy: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/kidzik/jiffy/resolve/main/ci/github-actions.yml
- Command line
-
hf download hf://kidzik/jiffy/ci/github-actions.yml
-
curl -L -o github-actions.yml https://huggingface.co/kidzik/jiffy/resolve/main/ci/github-actions.yml
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 | |