Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 2.1
orbs:
python: circleci/python@2
jobs:
build-package:
machine:
image: linux-cuda-12:default
resource_class: gpu.nvidia.small
steps:
- checkout
- python/install-packages:
pip-dependency-file: requirements.txt
pkg-manager: pip
args: pytest
pypi-cache: false
- run:
name: Create the ~/artifacts directory if it doesn't exist
command: mkdir -p ~/artifacts
- python/dist
- store_artifacts:
path: dist
destination: ~/artifacts
- run:
name: Copy .so file for testing
command: find build/ -name "_C*.so" -exec cp {} ./torchlpc/ \;
- run:
name: Run tests
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
- store_test_results:
path: junit.xml
workflows:
build-and-test:
jobs:
- build-package
2 changes: 2 additions & 0 deletions cpuonly-torch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-i https://download.pytorch.org/whl/cpu
torch
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy<2.0
numba
Loading