sgnlp icon indicating copy to clipboard operation
sgnlp copied to clipboard

Move tests to run on GitHub Actions

Open yuenherny opened this issue 1 year ago • 1 comments

Created .github/workflows/unit_tests.yml to run tests on GitHub Actions as mentioned in Issue #16 .

Unfortunately the workflow did not complete as there are tests that failed. See below:

Run pytest tests
============================= test session starts ==============================
platform linux -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/runner/work/sgnlp/sgnlp, configfile: pytest.ini
collected 136 items

tests/emotion_entailment/test_emotion_entailment.py ..F....              [  5%]
tests/emotion_entailment/test_emotion_entailment_postprocessor.py F      [  5%]
tests/emotion_entailment/test_emotion_entailment_preprocessor.py .       [  6%]
tests/emotion_entailment/test_emotion_entailment_train_eval.py ..        [  8%]
tests/emotion_entailment/test_emotion_entailment_utils.py ........       [ 13%]
tests/lsr/test_lsr.py F...                                               [16%]
tests/lsr/test_lsr_postprocessor.py F                                    [ 17%]
tests/lsr/test_lsr_preprocessor.py F                                     [ 18%]
tests/rst_pointer/test_rst_pointer_parser.py F..                         [ 20%]
tests/rst_pointer/test_rst_pointer_segmenter.py F..                      [ 22%]
tests/sentic_gcn/test_sentic_gcn_model.py ....................           [ 37%]
tests/sentic_gcn/test_sentic_gcn_postprocess.py ....                     [ 40%]
tests/sentic_gcn/test_sentic_gcn_preprocess.py F..F..                    [ 44%]
tests/sentic_gcn/test_sentic_gcn_tokenization.py ...                     [ 47%]
tests/sentic_gcn/test_sentic_gcn_train_eval.py F.FF                      [ 50%]
tests/sentic_gcn/test_sentic_gcn_utils.py .........                      [ 56%]
tests/span_extraction/test_span_extraction.py ..F....                    [ 61%]
tests/span_extraction/test_span_extraction_postprocessor.py F            [ 62%]
tests/span_extraction/test_span_extraction_preprocessor.py .             [ 63%]
tests/span_extraction/test_span_extraction_train_eval.py ..              [ 64%]
tests/span_extraction/test_span_extraction_utils.py ......               [ 69%]
tests/ufd/test_ufd.py ...............................                    [ 91%]
tests/ufd/test_ufd_model_builder.py F                                    [ 92%]
tests/ufd/test_ufd_preprocess.py ..                                      [ 94%]
tests/ufd/test_ufd_train_eval.py F.                                      [ 95%]
tests/ufd/test_ufd_utils.py .....F                                       [100%]

=================================== FAILURES ===================================
__________________ EmotionEntailmentTest.test_from_pretrained __________________

cls = <class 'sgnlp.models.emotion_entailment.config.RecconEmotionEntailmentConfig'>
pretrained_model_name_or_path = 'https://storage.googleapis.com/sgnlp/models/reccon_emotion_entailment/config.json'
kwargs = {}, cache_dir = None, force_download = False, resume_download = False
proxies = None, use_auth_token = None, local_files_only = False, revision = None
...

yuenherny avatar Mar 25 '23 14:03 yuenherny

Hi @atenzer , not sure if this repo is still maintained. Could you advise?

yuenherny avatar May 11 '23 16:05 yuenherny