diff options
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 6554e1f..7b6d44d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -1,26 +1,23 @@ | |||
1 | # Use the latest 2.1 version of CircleCI pipeline process engine. | ||
2 | # See: https://circleci.com/docs/2.0/configuration-reference | ||
3 | version: 2.1 | 1 | version: 2.1 |
4 | |||
5 | # Define a job to be invoked later in a workflow. | ||
6 | # See: https://circleci.com/docs/2.0/configuration-reference/#jobs | ||
7 | jobs: | 2 | jobs: |
8 | say-hello: | 3 | run-tests: |
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: | 4 | docker: |
12 | - image: cimg/base:stable | 5 | - image: cimg/python |
13 | # Add steps to the job | ||
14 | # See: https://circleci.com/docs/2.0/configuration-reference/#steps | ||
15 | steps: | 6 | steps: |
16 | - checkout | 7 | - checkout |
17 | - run: | 8 | - run: |
18 | name: "Say hello" | 9 | name: "Install test deps" |
19 | command: "echo Hello, World!" | 10 | command: "pip install .[test]" |
20 | 11 | - run: | |
21 | # Invoke jobs via workflows | 12 | name: "Install codecov" |
22 | # See: https://circleci.com/docs/2.0/configuration-reference/#workflows | 13 | command: "pip install codecov" |
14 | - run: | ||
15 | name: "Run tests" | ||
16 | command: "python setup.py pytest" | ||
17 | - run: | ||
18 | name: "Notify codecov" | ||
19 | command: "codecov" | ||
23 | workflows: | 20 | workflows: |
24 | say-hello-workflow: | 21 | run-tests-workflow: |
25 | jobs: | 22 | jobs: |
26 | - say-hello | 23 | - run-tests |