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

Disable tests which doesn't work on gitlab ci.

parent f02c4aab
No related branches found
No related tags found
2 merge requests!18Merge develop to master.,!17Disable tests which don't work on gitlab ci.
Pipeline #2249 passed
......@@ -9,7 +9,6 @@ stages:
- publish
before_script:
- pip install tox==2.9.1
- apt-get update -yqq
&& apt-get install -yqq --no-install-recommends
make
......@@ -20,7 +19,7 @@ before_script:
unittests:
stage: test
script:
- export SKIP_TEST="1"
- pip install tox==2.9.1
- tox -v -e pytest
pypi_publish:
......@@ -31,6 +30,7 @@ pypi_publish:
stage: publish
when: on_success
script:
- pip install twine
- python setup.py sdist bdist_wheel
- python -m twine upload
--repository-url https://pypi.clarin-pl.eu/
......
......@@ -8,9 +8,8 @@ import unittest
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")
# TODO Fix to make it disabled only on Gitlab-CI
@unittest.skip("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,8 +6,7 @@ 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")
@unittest.skip("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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment