.gitlab-ci.yml 1.28 KB
Newer Older
1
2
3
4
5
6
7
8
9
---
default:
  image: python:3.7

include:
  - project: "open-source/gitlab-ci-templates"
    ref: "branch/default"
    file:
      - "templates/no-duplicated-ci-pipelines.yml"  # use workflow to avoid duplicated pipelines
10
      - "templates/lint/twine-check.yml"  # will run twine check to see if pypi won't reject the package
11
      - "templates/lint/check-dependencies-resolution.yml"  # will run pip-compile -n to check if dependencies are compatibles
12
13
14
      - "templates/lint/flake8.yml"  # will do the equivalent of 'tox -e flake8'
      - "templates/lint/black.yml"  # will do the equivalent of 'tox -e black'
      - "templates/lint/check-manifest.yml"  # will do the equivalent of 'tox -e check-manifest'
15
      - "templates/lint/yamllint.yml"  # will do the equivalent of 'tox -e yamllint'
16
17
18
19
20
21
22
23
24
25
26
27
      - "templates/tests/py3.yml"  # will do the equivalent of 'tox -e py3'
      - "templates/create-release-on-heptapod.yml"  # this will create a release on heptapod
      - "templates/upload-to-pypi.yml"  # on a new mercurial tag (expected to be done with release-new), will push a release on pypi
  # uncomment and uses to customize/extend the configuration here if needed
  # (it needs to be at the same level than "- project")
  # - ".gitlab-ci-extended.yml"

stages:
  - lint
  - tests
  - release
  - publish