• Arthur's avatar
    [Doctests] Refactor doctests + add CI (#22987) · 627f4479
    Arthur authored
    
    
    * intiial commit
    
    * new styling
    
    * update
    
    * just run doctest in CI
    
    * remove more test for fast dev
    
    * update
    
    * update refs
    
    * update path and fetch upstream
    
    * update documentatyion trests
    
    * typo
    
    * parse pwd
    
    * don't check for files that are in hidden folders
    
    * just give paths relative to transformers
    
    * update
    
    * update
    
    * update
    
    * major refactoring
    
    * make sure options is ok
    
    * lest test that mdx is tested
    
    * doctest glob
    
    * nits
    
    * update doctest nightly
    
    * some cleaning
    
    * run correct test on diff
    
    * debug
    
    * run on a single worker
    
    * skip_cuda_test tampkate
    
    * updates
    
    * add rA and continue on failure
    
    * test options
    
    * parse `py` codeblock?
    
    * we don't need to replace ignore results, don't remember whyu I put it
    
    * cleanup
    
    * more cleaning
    
    * fix arg
    
    * more cleaning
    
    * clean an todo
    
    * more pre-processing
    
    * doctest-module has none so extra `- ` is needed
    
    * remove logs
    
    * nits
    
    * doctest-modules ....
    
    * oups
    
    * let's use sugar
    
    * make dataset go quiet
    
    * add proper timeout
    
    * nites
    
    * spleling timeout
    
    * update
    
    * properly skip tests that have CUDSA
    
    * proper skipping
    
    * cleaning main and get tests to run
    
    * remove make report?
    
    * remove tee
    
    * some updates
    
    * tee was removed but is the full output still available?
    
    * [all-test]
    
    * only our tests
    
    * don't  touch tee in this PR
    
    * no atee-sys
    
    * proper sub
    
    * monkey
    
    * only replace call
    
    * fix sub
    
    * nits
    
    * nits
    
    * fix invalid syntax
    
    * add skip cuda doctest env variable
    
    * make sure all packages are installed
    
    * move file
    
    * update check repo
    
    * revert changes
    
    * nit
    
    * finish cleanup
    
    * fix re
    
    * findall
    
    * update don't test init files
    
    * ignore pycache
    
    * `-ignore-pycache` when running pytests
    
    * try to fix the import missmatch error
    
    * install dec
    
    * pytest is required as doctest_utils imports things from it
    
    * the only log issues were dataset, ignore results should work
    
    * more cleaning
    
    * Update .circleci/create_circleci_config.py
    
    Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
    
    * Apply suggestions from code review
    
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    
    * [ydshieh] empty string if cuda is found
    
    * [ydshieh] fix condition
    
    * style
    
    * [ydshieh] fix
    
    * Add comment
    
    * style
    
    * style
    
    * show failure
    
    * trigger CI
    
    ---------
    
    Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
    Co-authored-by: default avatarYih-Dar <2521628+ydshieh@users.noreply.github.com>
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
    627f4479