File: config.yml

package info (click to toggle)
python-xlrd 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,876 kB
  • sloc: python: 7,540; makefile: 118; sh: 7
file content (98 lines) | stat: -rw-r--r-- 2,083 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: 2.1

orbs:
  python: cjw296/python-ci@2.1

jobs:
  coverage:
    docker:
      - image: circleci/python:3.8
    steps:
      - checkout
      - attach_workspace:
          at: coverage_output
      - run:
          name: "Check coverage"
          command: |
            sudo pip install coverage
            coverage combine coverage_output/
            bash <(curl -s https://codecov.io/bash)

  check-package:
    parameters:
      image:
        type: string
    docker:
      - image: << parameters.image >>
    steps:
      - python/check-package:
          package: "xlrd"
          test:
          - run:
              name: "Check Import"
              command: python -c "import xlrd"
          - run:
              name: "Check no XLS in wheel"
              command: "! unzip -l dist/*.whl | egrep '.xlsx?$'"
          - run:
              name: "Check no XLS in source dist"
              command: "! tar tzf dist/*.tar.gz | egrep '.xlsx?$'"

common: &common
  jobs:

    - python/pip-run-tests:
        matrix:
          parameters:
            image:
              - circleci/python:2.7
              - circleci/python:3.6
              - circleci/python:3.9

    - coverage:
        name: coverage
        requires:
          - python/pip-run-tests

    - python/pip-docs:
        name: docs
        requires:
          - coverage

    - python/pip-setuptools-build-package:
        name: package
        requires:
          - docs
        filters:
          branches:
            only: master

    - check-package:
        matrix:
          parameters:
            image:
              - circleci/python:2.7
              - circleci/python:3.9
        requires:
          - package

    - python/release:
        name: release
        config: .carthorse.yml
        requires:
          - check-package
        filters:
          branches:
            only: master

workflows:
  push:
    <<: *common
  periodic:
    <<: *common
    triggers:
      - schedule:
          cron: "0 0 11 * *"
          filters:
            branches:
              only: master