flake8/.gitlab-ci.yml
2021-03-30 17:37:12 -07:00

70 lines
955 B
YAML

image: python
stages:
- test
- build
- release
before_script:
- pip install pip --upgrade
- pip install -r dev-requirements.txt
after_script:
- pip install codecov
- codecov --token=7d117e6b-aab6-4283-ab19-166dafc38cf5
pypy3:
image: pypy:3.6-7.2.0
stage: test
script: tox -e pypy3
python36:
image: python:3.6
stage: test
script: tox -e py36
python37:
image: python:3.7
stage: test
script: tox -e py37
python38:
image: python:3.8
stage: test
script: tox -e py38
linters:
image: python:3.7
stage: test
script: tox -e linters
pre-commit:
image: python:3.7
stage: test
script: tox -e pre-commit
docs:
stage: test
script: tox -e docs
dogfood:
image: python:3.7
stage: test
script: tox -e dogfood
build:
stage: build
script: tox -e build
artifacts:
paths:
- dist/
expire_in: 1 month
release:
stage: release
script: tox -e build
artifacts:
paths:
- dist
only:
- tags