diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a634a261630a9faeea636339e4c2ecc56cc8ba26..3610712f67bab5c2e21ccd172c12683f38f4a720 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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,8 +30,9 @@ pypi_publish: stage: publish when: on_success script: - - python setup.py sdist bdist_wheel - - python -m twine upload + - pip install twine + - python setup.py sdist bdist_wheel + - python -m twine upload --repository-url https://pypi.clarin-pl.eu/ -u $PIPY_USER -p $PIPY_PASS diff --git a/tests/test_main.py b/tests/test_main.py index afb7228e5898fb00f825aee5a8e73d637b53c76a..448e64de4791a659fe53a494104b5fe4ac35fc75 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -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" diff --git a/tests/test_predict.py b/tests/test_predict.py index a077502264e8627afef11edebc4190bb6cfc8328..bcc43266a9bd23d68c0a5f51d45a857497908cb4 100644 --- a/tests/test_predict.py +++ b/tests/test_predict.py @@ -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"