Fix the pytest version to be less than 8.0.1 (#2461)
* Fix the pytest version to be less than 8.0.0
We're getting errors such as:
> /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/transformers/testing_utils.py:129: in <module>
> from _pytest.doctest import (
> E ImportError: cannot import name 'import_path' from '_pytest.doctest' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/doctest.py)
* Update setup.py
Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com>
---------
Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com>