|
1 |
| -# Use the latest 2.1 version of CircleCI pipeline process engine. |
2 |
| -# See: https://circleci.com/docs/2.0/configuration-reference |
3 | 1 | version: 2.1
|
4 | 2 |
|
5 |
| -# Define a job to be invoked later in a workflow. |
6 |
| -# See: https://circleci.com/docs/2.0/configuration-reference/#jobs |
7 |
| -jobs: |
8 |
| - lint: |
9 |
| - # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. |
10 |
| - # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor |
11 |
| - docker: |
12 |
| - - image: cimg/python:3.7.4 |
13 |
| - # Add steps to the job |
14 |
| - # See: https://circleci.com/docs/2.0/configuration-reference/#steps |
15 |
| - steps: |
16 |
| - - checkout |
17 |
| - - run: |
18 |
| - name: Install pre-commit hook |
19 |
| - command: | |
20 |
| - pip install pre-commit |
21 |
| - pre-commit install |
22 |
| - - run: |
23 |
| - name: Linting |
24 |
| - command: pre-commit run --all-files |
25 |
| - - run: |
26 |
| - name: Check docstring coverage |
27 |
| - command: | |
28 |
| - pip install interrogate |
29 |
| - interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdeploy |
| 3 | +# this allows you to use CircleCI's dynamic configuration feature |
| 4 | +setup: true |
| 5 | + |
| 6 | +# the path-filtering orb is required to continue a pipeline based on |
| 7 | +# the path of an updated fileset |
| 8 | +orbs: |
| 9 | + path-filtering: circleci/[email protected] |
30 | 10 |
|
31 |
| -# Invoke jobs via workflows |
32 |
| -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows |
33 | 11 | workflows:
|
34 |
| - pr_stage_test: |
| 12 | + # the always-run workflow is always triggered, regardless of the pipeline parameters. |
| 13 | + always-run: |
35 | 14 | jobs:
|
36 |
| - - lint |
| 15 | + # the path-filtering/filter job determines which pipeline |
| 16 | + # parameters to update. |
| 17 | + - path-filtering/filter: |
| 18 | + name: check-updated-files |
| 19 | + # 3-column, whitespace-delimited mapping. One mapping per |
| 20 | + # line: |
| 21 | + # <regex path-to-test> <parameter-to-set> <value-of-pipeline-parameter> |
| 22 | + mapping: | |
| 23 | + .circle/.* lint_only false |
| 24 | + cmake/.* lint_only false |
| 25 | + configs/.* lint_only false |
| 26 | + csrc/.* lint_only false |
| 27 | + demo/csrc/.* lint_only false |
| 28 | + docker/.* lint_only false |
| 29 | + mmdeploy/.* lint_only false |
| 30 | + requirements/.* lint_only false |
| 31 | + tests/.* lint_only false |
| 32 | + third_party/.* lint_only false |
| 33 | + tools/.* lint_only false |
| 34 | + base-revision: master |
| 35 | + # this is the path of the configuration we should trigger once |
| 36 | + # path filtering and pipeline parameter value updates are |
| 37 | + # complete. In this case, we are using the parent dynamic |
| 38 | + # configuration itself. |
| 39 | + config-path: .circleci/test.yml |
0 commit comments