Skip to content

Commit be04063

Browse files
committed
try running tests on python 3.7 on circleci as well
1 parent e2eb54d commit be04063

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.circleci/config.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,46 @@ jobs:
7272
path: test-reports3.6.4
7373
destination: test-reports3.6.4
7474

75+
build-python37:
76+
docker:
77+
- image: python:3.7
78+
working_directory: ~/repo
79+
steps:
80+
- run: echo "hello python 3.7"
81+
- checkout
82+
83+
# Download and cache dependencies
84+
- restore_cache:
85+
keys:
86+
- v1-dependencies-{{ checksum "setup.py" }}
87+
# fallback to using the latest cache if no exact match is found
88+
- v1-dependencies-
89+
90+
# run tests!
91+
# this example uses Django's built-in test-runner
92+
# other common Python testing frameworks include pytest and nose
93+
# https://pytest.org
94+
# https://nose.readthedocs.io
95+
- run:
96+
name: run tests
97+
command: |
98+
python setup.py install
99+
pip install flake8 && flake8 alpaca_trade_api tests
100+
python setup.py test
101+
102+
- save_cache:
103+
paths:
104+
- ./eggs
105+
key: v1-dependencies-{{ checksum "setup.py" }}
106+
107+
- store_artifacts:
108+
path: test-reports3.7
109+
destination: test-reports3.7
110+
75111
workflows:
76112
version: 2
77113
build:
78114
jobs:
79115
# - build-python27
80-
- build-python36
116+
- build-python36
117+
- build-python37

0 commit comments

Comments
 (0)