blob: 9855ef7102284bc8cdb7636f1e56c4d5cfccc787 [file] [log] [blame]
version: 2.1
orbs:
python: cjw296/python-ci@2
jobs:
check-package:
parameters:
image:
type: string
python:
type: string
default: "python"
docker:
- image: << parameters.image >>
steps:
- python/check-package:
package: "mock"
test:
- run:
name: "Import package"
command: << parameters.python >> -c "import mock"
common: &common
jobs:
- python/pip-run-tests:
name: python36
image: circleci/python:3.6
- python/pip-run-tests:
name: python37
image: circleci/python:3.7
- python/pip-run-tests:
name: python38
image: circleci/python:3.8
- python/pip-run-tests:
name: pypy36
image: pypy:3.6
- python/coverage:
name: coverage
requires:
- python36
- python37
- python38
- pypy36
- python/pip-docs:
name: docs
requires:
- coverage
- python/pip-setuptools-build-package:
name: package
requires:
- docs
filters:
branches:
only: master
- check-package:
name: check-package-python36
image: circleci/python:3.6
requires:
- package
- check-package:
name: check-package-python37
image: circleci/python:3.7
requires:
- package
- check-package:
name: check-package-python38
image: circleci/python:3.8
requires:
- package
- check-package:
name: check-package-pypy36
image: pypy:3.6
python: pypy3
requires:
- package
- python/release:
name: release
config: .carthorse.yml
requires:
- check-package-python36
- check-package-python37
- check-package-python38
- check-package-pypy36
workflows:
push:
<<: *common
periodic:
<<: *common
triggers:
- schedule:
cron: "0 1 * * *"
filters:
branches:
only: master