-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathconfig.yml
More file actions
46 lines (41 loc) · 1019 Bytes
/
config.yml
File metadata and controls
46 lines (41 loc) · 1019 Bytes
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
version: 2.1
orbs:
python: circleci/python@2.1.1
commands:
install-dependencies-run-tests:
parameters:
mock-version:
type: string
requests-version:
type: string
steps:
- run:
name: Install test dependencies
command: |
pip install mock==<<parameters.mock-version>>
pip install requests==<<parameters.requests-version>>
- run:
name: Run tests
command: python -m unittest discover
jobs:
build-and-test-python3:
docker:
- image: cimg/python:3.10.2
steps:
- checkout
- install-dependencies-run-tests:
mock-version: 5.0.1
requests-version: 2.28.2
build-and-test-python2:
docker:
- image: cimg/python:2.7.18
steps:
- checkout
- install-dependencies-run-tests:
mock-version: 3.0.5
requests-version: 2.27.1
workflows:
build-and-test-wf:
jobs:
- build-and-test-python3
- build-and-test-python2