Skip to content

Commit f421289

Browse files
committed
update config, try gpu machine
1 parent 6e006bc commit f421289

1 file changed

Lines changed: 16 additions & 19 deletions

File tree

.circleci/config.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,35 @@ version: 2.1
44
orbs:
55
python: circleci/python@2
66
jobs:
7-
test-python:
7+
build-package:
88
# Install dependencies and run tests
9-
docker:
10-
- image: cimg/python:3.9-node
9+
machine:
10+
image: linux-cuda-12:default
11+
resource_class: gpu.nvidia.small
1112
steps:
1213
- checkout
1314
- python/install-packages:
14-
pip-dependency-file: dev-requirements.txt
15+
pip-dependency-file: requirements.txt
1516
pkg-manager: pip
16-
args: torch pytest
17-
- run:
18-
name: Run tests
19-
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
20-
- store_test_results:
21-
path: junit.xml
22-
build-package:
23-
# build python package
24-
docker:
25-
- image: cimg/python:3.9-node
26-
steps:
27-
- checkout
17+
args: pytest
18+
pypi-cache: false
2819
- run:
2920
name: Create the ~/artifacts directory if it doesn't exist
3021
command: mkdir -p ~/artifacts
3122
- python/dist
3223
- store_artifacts:
3324
path: dist
3425
destination: ~/artifacts
26+
- run:
27+
name: Copy .so file for testing
28+
command: find build/ -name "_C*.so" -exec cp {} ./torchlpc/ \;
29+
- run:
30+
name: Run tests
31+
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
32+
- store_test_results:
33+
path: junit.xml
34+
3535
workflows:
3636
build-and-test:
3737
jobs:
38-
- test-python
3938
- build-package:
40-
requires:
41-
- test-python

0 commit comments

Comments
 (0)