Skip to content

Add a CPU check and CI #2

Add a CPU check and CI

Add a CPU check and CI #2

Workflow file for this run

name: CPU tests
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 8 * * *"
jobs:
lint:
runs-on: ubuntu-latest
container:
image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/xla:nightly_3.10_tpuvm
strategy:
matrix:
python-version: ["3.10"]
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 dev dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Run PyTest
run: |
# TODO(https://github.com/AI-Hypercomputer/torchprime/issues/14): Remove and burn the token.
export HF_TOKEN=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
pytest