Skip to content

Commit d55161d

Browse files
committed
Use machine image to run tests on both python versions in one go
1 parent b7e6554 commit d55161d

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.circleci/config.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
version: 2.1
22

33
jobs:
4-
unit_test_py3:
5-
docker:
6-
- image: python:3
4+
unit_test:
5+
machine:
6+
enabled: true
7+
image: "ubuntu-1604:201903-01"
78
steps:
89
- checkout
910
- run:
10-
name: run tests
11-
command: |
12-
python test/check-skip-env/check_skip_env_test.py
13-
unit_test_py2:
14-
docker:
15-
- image: python:2
16-
steps:
17-
- checkout
11+
name: run tests py2
12+
command: python test/check-skip-env/check_skip_env_test.py
1813
- run:
19-
name: run tests
20-
command: |
21-
python test/check-skip-env/check_skip_env_test.py
14+
name: run tests py3
15+
command: python3 test/check-skip-env/check_skip_env_test.py
2216

2317

2418
workflows:

0 commit comments

Comments
 (0)