diff options
| author | Kai Li (李凯) <tsinghua.kaili@gmail.com> | 2026-08-14 12:02:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-14 12:02:03 +0800 |
| commit | d8b3d2092a3a18384200ea95df237d5a8ef95d88 (patch) | |
| tree | 7d9f2f847b4a424fa865ef1124c83652bd803b58 /.github/workflows/cpu-unit-tests.yml | |
| parent | 6eec5c9ffae9a92f0c11352b28a53bd178728bf1 (diff) | |
| parent | 46c09a1f9337fb5b254ff54b630e01eee4c992c4 (diff) | |
| download | apollo-gfx803-d8b3d2092a3a18384200ea95df237d5a8ef95d88.tar.gz | |
Merge pull request #38 from Djshinshin/codex/mps-device-support
Add device-agnostic inference support
Diffstat (limited to '.github/workflows/cpu-unit-tests.yml')
| -rw-r--r-- | .github/workflows/cpu-unit-tests.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/cpu-unit-tests.yml b/.github/workflows/cpu-unit-tests.yml new file mode 100644 index 0000000..4248fbb --- /dev/null +++ b/.github/workflows/cpu-unit-tests.yml @@ -0,0 +1,25 @@ +name: CPU unit tests + +on: + pull_request: + push: + branches: [main] + +jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + cache: pip + - name: Install CPU test dependencies + run: | + python -m pip install --upgrade pip + python -m pip install torch==2.11.0 --index-url https://download.pytorch.org/whl/cpu + python -m pip install numpy==1.26.4 huggingface-hub==1.27.0 soundfile==0.14.0 + - name: Compile and run unit tests + run: | + python -m py_compile inference.py tests/test_inference.py + python -m unittest discover -s tests -v |
