Skip to content
Snippets Groups Projects
Commit 92c6b1b2 authored by Mateusz Gniewkowski's avatar Mateusz Gniewkowski
Browse files

Merge branch 'adding_tests' into 'master'

Adding tests

See merge request !5
parents c0756ecd 4143cd84
No related branches found
No related tags found
1 merge request!5Adding tests
Pipeline #1129 passed
...@@ -9,6 +9,7 @@ cache: ...@@ -9,6 +9,7 @@ cache:
stages: stages:
- check_style - check_style
- tests
- push_wheel - push_wheel
pep8: pep8:
...@@ -21,6 +22,14 @@ docstyle: ...@@ -21,6 +22,14 @@ docstyle:
script: script:
- tox -v -e docstyle - tox -v -e docstyle
test:
stage: tests
before_script:
- apt-get install -y language-pack-pl-base
- dpkg-reconfigure locales
script:
- python setup.py test
push_wheel: push_wheel:
before_script: before_script:
- pip install twine - pip install twine
...@@ -34,4 +43,3 @@ push_wheel: ...@@ -34,4 +43,3 @@ push_wheel:
--repository-url https://pypi.clarin-pl.eu/ --repository-url https://pypi.clarin-pl.eu/
-u $PIPY_USER -p $PIPY_PASS dist/plwn_api*.whl -u $PIPY_USER -p $PIPY_PASS dist/plwn_api*.whl
"""Implementation of download method.""" """Implementation of download method."""
import configparser
import os import os
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
import re import re
import requests import requests
from six.moves.urllib.request import urlopen from six.moves.urllib.request import urlopen
from six.moves import configparser
config = configparser.ConfigParser() config = configparser.ConfigParser()
......
...@@ -8,7 +8,7 @@ import os ...@@ -8,7 +8,7 @@ import os
ENVNAME_DIST_NODEFAULT = 'PLWN_API_DIST_NO_DEFAULT_STORAGE' ENVNAME_DIST_NODEFAULT = 'PLWN_API_DIST_NO_DEFAULT_STORAGE'
setup_args = dict( setup_args = dict(
name='PLWN_API', name='plwn_api',
version='0.24', version='0.24',
license='LGPL-3.0+', license='LGPL-3.0+',
description='Python API to access plWordNet lexicon', description='Python API to access plWordNet lexicon',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment