Debian Codegraph @

.circleci/config.yml

raw
1 version: 2.1
2
3 orbs:
4 codecov: codecov/[email protected]
5
6 workflows:
7 version: 2
8 test:
9 jobs:
10 - py39
11 - py38
12 - py37
13 - black
14 - check-manifest
15 - flake8
16
17 jobs:
18 py39: &test-template
19 docker:
20 - image: mopidy/ci-python:3.9
21 steps:
22 - checkout
23 - restore_cache:
24 name: Restoring tox cache
25 key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }}
26 - run:
27 name: Run tests
28 command: |
29 tox -e $CIRCLE_JOB -- \
30 --junit-xml=test-results/pytest/results.xml \
31 --cov-report=xml
32 - save_cache:
33 name: Saving tox cache
34 key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }}
35 paths:
36 - ./.tox
37 - ~/.cache/pip
38 - codecov/upload:
39 file: coverage.xml
40 - store_test_results:
41 path: test-results
42
43 py38:
44 <<: *test-template
45 docker:
46 - image: mopidy/ci-python:3.8
47
48 py37:
49 <<: *test-template
50 docker:
51 - image: mopidy/ci-python:3.7
52
53 black: *test-template
54
55 check-manifest: *test-template
56
57 flake8: *test-template