mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
update dependencies and circle-ci
This commit is contained in:
parent
24a20483f5
commit
9d0a11a68c
@ -1,6 +1,6 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build_py3:
|
build_py3_torch:
|
||||||
working_directory: ~/pytorch-transformers
|
working_directory: ~/pytorch-transformers
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/python:3.5
|
- image: circleci/python:3.5
|
||||||
@ -8,14 +8,29 @@ jobs:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run: sudo pip install torch
|
||||||
- run: sudo pip install --progress-bar off .
|
- run: sudo pip install --progress-bar off .
|
||||||
- run: sudo pip install pytest codecov pytest-cov
|
- run: sudo pip install pytest codecov pytest-cov
|
||||||
- run: sudo pip install tensorboardX scikit-learn
|
- run: sudo pip install tensorboardX scikit-learn
|
||||||
- run: sudo pip install tensorflow==2.0.0-rc0
|
|
||||||
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
||||||
- run: python -m pytest -sv ./examples/
|
- run: python -m pytest -sv ./examples/
|
||||||
- run: codecov
|
- run: codecov
|
||||||
build_py2:
|
build_py3_tf:
|
||||||
|
working_directory: ~/pytorch-transformers
|
||||||
|
docker:
|
||||||
|
- image: circleci/python:3.5
|
||||||
|
resource_class: xlarge
|
||||||
|
parallelism: 1
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: sudo pip install tensorflow==2.0.0-rc0
|
||||||
|
- run: sudo pip install --progress-bar off .
|
||||||
|
- run: sudo pip install pytest codecov pytest-cov
|
||||||
|
- run: sudo pip install tensorboardX scikit-learn
|
||||||
|
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
||||||
|
- run: python -m pytest -sv ./examples/
|
||||||
|
- run: codecov
|
||||||
|
build_py2_torch:
|
||||||
working_directory: ~/pytorch-transformers
|
working_directory: ~/pytorch-transformers
|
||||||
resource_class: large
|
resource_class: large
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
@ -23,9 +38,22 @@ jobs:
|
|||||||
- image: circleci/python:2.7
|
- image: circleci/python:2.7
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run: sudo pip install torch
|
||||||
- run: sudo pip install --progress-bar off .
|
- run: sudo pip install --progress-bar off .
|
||||||
- run: sudo pip install pytest codecov pytest-cov
|
- run: sudo pip install pytest codecov pytest-cov
|
||||||
|
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
||||||
|
- run: codecov
|
||||||
|
build_py2_tf:
|
||||||
|
working_directory: ~/pytorch-transformers
|
||||||
|
resource_class: large
|
||||||
|
parallelism: 1
|
||||||
|
docker:
|
||||||
|
- image: circleci/python:2.7
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
- run: sudo pip install tensorflow==2.0.0-rc0
|
- run: sudo pip install tensorflow==2.0.0-rc0
|
||||||
|
- run: sudo pip install --progress-bar off .
|
||||||
|
- run: sudo pip install pytest codecov pytest-cov
|
||||||
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
||||||
- run: codecov
|
- run: codecov
|
||||||
deploy_doc:
|
deploy_doc:
|
||||||
@ -49,6 +77,8 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- build_py3
|
- build_py3_torch
|
||||||
- build_py2
|
- build_py3_tf
|
||||||
|
- build_py2_torch
|
||||||
|
- build_py2_tf
|
||||||
- deploy_doc: *workflow_filters
|
- deploy_doc: *workflow_filters
|
@ -1,5 +1,3 @@
|
|||||||
# PyTorch
|
|
||||||
torch>=1.0.0
|
|
||||||
# progress bars in model download and training scripts
|
# progress bars in model download and training scripts
|
||||||
tqdm
|
tqdm
|
||||||
# Accessing files from S3 directly.
|
# Accessing files from S3 directly.
|
||||||
|
3
setup.py
3
setup.py
@ -49,8 +49,7 @@ setup(
|
|||||||
url="https://github.com/huggingface/pytorch-transformers",
|
url="https://github.com/huggingface/pytorch-transformers",
|
||||||
packages=find_packages(exclude=["*.tests", "*.tests.*",
|
packages=find_packages(exclude=["*.tests", "*.tests.*",
|
||||||
"tests.*", "tests"]),
|
"tests.*", "tests"]),
|
||||||
install_requires=['torch>=1.0.0',
|
install_requires=['numpy',
|
||||||
'numpy',
|
|
||||||
'boto3',
|
'boto3',
|
||||||
'requests',
|
'requests',
|
||||||
'tqdm',
|
'tqdm',
|
||||||
|
Loading…
Reference in New Issue
Block a user