-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathconfig.yml
More file actions
73 lines (61 loc) · 2.08 KB
/
config.yml
File metadata and controls
73 lines (61 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build_and_test:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.7.3-browsers`
- image: circleci/python:3.7.3
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/paysage
environment:
CIRCLE_REPOSITORY_URL: https://github.com/drckf/paysage
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v4-dependencies-{{ .Branch }}-{{ checksum "setup.py" }}
# fallback to using the latest cache if no exact match is found
- v4-dependencies-
- run:
name: Install Requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -e .
python3 examples/mnist/download_mnist.py
- save_cache:
paths:
- "venv"
key: v4-dependencies-{{ .Branch }}-{{ checksum "setup.py" }}
# run tests on the python backend
- run:
name: Run the Tests (Python CPU backend)
command: |
. venv/bin/activate
cp .circleci/backend_pythonCPU_config.json paysage/backends/config.json
py.test test --junitxml=test-reports/output_pythonCPU.xml
# run tests on the pytorch backend
- run:
name: Run the Tests (PyTorch CPU backend)
command: |
. venv/bin/activate
cp .circleci/backend_pytorchCPU_config.json paysage/backends/config.json
py.test test --junitxml=test-reports/output_pytorchCPU.xml
- store_artifacts:
path: test-reports/
destination: tr1
- store_test_results:
path: test-reports/
workflows:
version: 2
build_and_test:
jobs:
- build_and_test