Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CERN Digital Memory
bagit-create
Commits
3bc8c447
Verified
Commit
3bc8c447
authored
Jul 09, 2021
by
Antonio Vivace
Browse files
ci: Set up CI pipelines for running tests, analyses and publish to PyPi
parent
7f1eabb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
3bc8c447
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
LICENSE
View file @
3bc8c447
(c) 2020 CERN
(c) 2020
- 2021
CERN
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
...
...
pyproject.toml
View file @
3bc8c447
...
...
@@ -4,7 +4,7 @@ line-length = 89
[tool.tox]
legacy_tox_ini
=
"""
[tox]
envlist = py
36
envlist = py
[testenv]
deps = pytest
commands = pytest
...
...
setup.cfg
0 → 100644
View file @
3bc8c447
[metadata]
description-file = README.md
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment