Skip to content
Snippets Groups Projects
Commit f02c4aab authored by Mateusz Klimaszewski's avatar Mateusz Klimaszewski
Browse files

Add gitlab CI configuration.

parent bcce7338
Branches
Tags
2 merge requests!18Merge develop to master.,!16Add gitlab CI configuration.
Pipeline #2245 failed with stage
in 6 minutes and 21 seconds
image: clarinpl/python:3.8
cache:
paths:
- .tox
stages:
- test
- publish
before_script:
- pip install tox==2.9.1
- 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:
- export SKIP_TEST="1"
- tox -v -e pytest
pypi_publish:
before_script:
- pip install twine
only:
- master
stage: publish
when: on_success
script:
- python setup.py sdist bdist_wheel
- python -m twine upload
--repository-url https://pypi.clarin-pl.eu/
-u $PIPY_USER
-p $PIPY_PASS
dist/COMBO*.whl
[aliases]
test=pytest
[tox]
envlist = py38
skipsdist = True
[testenv:pytest]
deps = pytest
commands = pytest
[metadata]
description-file = README.md
......@@ -21,9 +21,11 @@ REQUIREMENTS = [
setup(
name='COMBO',
version='1.0.0b1',
author='Mateusz Klimaszewski',
author_email='M.Klimaszewski@ii.pw.edu.pl',
install_requires=REQUIREMENTS,
packages=find_packages(exclude=['tests']),
license="GPL-3.0",
license='GPL-3.0',
url='https://gitlab.clarin-pl.eu/syntactic-tools/combo',
keywords="nlp natural-language-processing dependency-parsing",
setup_requires=['pytest-runner', 'pytest-pylint'],
......
......@@ -9,6 +9,8 @@ from allennlp.commands import train
from allennlp.common import Params, util
@unittest.skipIf("SKIP_TEST" in os.environ, "Skipping, because torch 1.6.0 "
"https://github.com/pytorch/pytorch/issues/43300")
class TrainingEndToEndTest(unittest.TestCase):
PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve()
MODULE_ROOT = PROJECT_ROOT / "combo"
......
......@@ -6,6 +6,8 @@ import combo.data as data
import combo.predict as predict
@unittest.skipIf("SKIP_TEST" in os.environ, "Skipping, because torch 1.6.0 "
"https://github.com/pytorch/pytorch/issues/43300")
class PredictionTest(unittest.TestCase):
PROJECT_ROOT = (pathlib.Path(__file__).parent / "..").resolve()
MODULE_ROOT = PROJECT_ROOT / "combo"
......
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