Verified Commit 3bc8c447 authored by Antonio Vivace's avatar Antonio Vivace
Browse files

ci: Set up CI pipelines for running tests, analyses and publish to PyPi

parent 7f1eabb1
image: python:latest
stages:
- Static Analysis
- Test
- Release
flake8:
stage: Static Analysis
script:
- pip install flake8
- python -m flake8 --statistics --count .
allow_failure: true
test:
stage: Test
image: $IMAGE
parallel:
matrix:
- IMAGE: ['python:3.6', 'python:3.7']
script:
- pip install tox flake8
- python -m tox
pypi:
stage: Release
script:
- pip install -U twine
- python setup.py sdist
- twine upload dist/*
only:
- tags
(c) 2020 CERN
(c) 2020 - 2021 CERN
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
......
......@@ -4,7 +4,7 @@ line-length = 89
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py36
envlist = py
[testenv]
deps = pytest
commands = pytest
......
[metadata]
description-file = README.md
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment