Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
f02c4aab
Commit
f02c4aab
authored
4 years ago
by
Mateusz Klimaszewski
Browse files
Options
Downloads
Patches
Plain Diff
Add gitlab CI configuration.
parent
bcce7338
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!18
Merge develop to master.
,
!16
Add gitlab CI configuration.
Pipeline
#2245
failed with stage
in 6 minutes and 21 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+39
-0
39 additions, 0 deletions
.gitlab-ci.yml
setup.cfg
+9
-0
9 additions, 0 deletions
setup.cfg
setup.py
+3
-1
3 additions, 1 deletion
setup.py
tests/test_main.py
+2
-0
2 additions, 0 deletions
tests/test_main.py
tests/test_predict.py
+2
-0
2 additions, 0 deletions
tests/test_predict.py
with
55 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
39
−
0
View file @
f02c4aab
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
This diff is collapsed.
Click to expand it.
setup.cfg
+
9
−
0
View file @
f02c4aab
[aliases]
test=pytest
[tox]
envlist
= py38
skipsdist
= True
[testenv:pytest]
deps
= pytest
commands
= pytest
[metadata]
description
-file = README.md
This diff is collapsed.
Click to expand it.
setup.py
+
3
−
1
View file @
f02c4aab
...
...
@@ -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
'
],
...
...
This diff is collapsed.
Click to expand it.
tests/test_main.py
+
2
−
0
View file @
f02c4aab
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
tests/test_predict.py
+
2
−
0
View file @
f02c4aab
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment