-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpython_ci.yml
52 lines (47 loc) · 1.4 KB
/
python_ci.yml
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
version: 2.1
jobs:
install_py3:
docker:
- image: svalinn/pymoab-py3-18.04
steps:
- checkout #pull repo in the docker container
- run: pip install --user
- run:
working_directory: ~/
command: python -c "import my_package"
install_py2:
docker:
- image: svalinn/pymoab-py2-18.04
steps:
- checkout #pull repo in the docker container
- run: pip install --user
- run:
working_directory: ~/
command: python -c "import my_package"
run_test_py3:
docker:
- image: svalinn/pymoab-py3-18.04
steps:
- checkout #pull repo in the docker container
- run:
working_directory: #/directory
command: python -m pytest
run_test_py2:
docker:
- image: svalinn/pymoab-py2-18.04
steps:
- checkout #pull repo in the docker container
- run:
working_directory: #/directory
command: python -m pytest
workflows:
my_workflows:
jobs:
- run_test_py3
- install_py3:
- requires:
run_test_py3
- run_test_py2
- install_py2
- requires:
run_test_py2