Skip to content
Snippets Groups Projects
Commit cdceedd0 authored by Maja Jablonska's avatar Maja Jablonska
Browse files

Add tox and gitlab CI configuration

parent 4d4ccc26
Branches
Tags
No related merge requests found
Pipeline #16308 failed with stage
in 29 seconds
image: python:latest
cache:
paths:
- .tox
stages:
- test
- publish
before_script:
- apt-get update -yqq
&& apt-get install -yqq --no-install-recommends
make
g++
&& apt-get autoremove -yqq --purge
&& apt-get clean
unittests:
stage: test
script:
- pip install tox==4.12
- tox -v -e pytest
pypi_publish:
before_script:
- pip install twine
only:
- master
stage: publish
when: on_success
script:
- pip install twine
- python setup.py sdist bdist_wheel
- python -m twine upload
--skip-existing
--repository-url https://pypi.clarin-pl.eu/
-u $PIPY_USER
-p $PIPY_PASS
dist/combo*.whl
[aliases]
test=pytest
[tox:tox]
envlist = py38
skipsdist = True
[testenv:pytest]
deps = pytest
commands = pytest
[metadata]
description-file = README.md
[tox]
envlist = py38,py39,py310
[testenv]
deps = pytest
commands = pytest {posargs}
\ No newline at end of file
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