check the validity of links

We add a script and a CI workflow to check that all download links
present in the source code are valid.
This commit is contained in:
Rémi Louf
2019-12-05 21:24:57 +01:00
parent 35ff345fc9
commit f230d91b43
2 changed files with 90 additions and 0 deletions

View File

@@ -82,6 +82,16 @@ jobs:
- run: sudo pip install --progress-bar off -r docs/requirements.txt
- run: sudo pip install --progress-bar off -r requirements.txt
- run: ./.circleci/deploy.sh
repository_consistency:
working_directory: ~/transformers
docker:
- image: circleci/python:3.5
resource_class: small
parallelism: 1
steps:
- checkout
- run: sudo pip install requests
- run: python ./utils/link_tester.py
workflow_filters: &workflow_filters
filters:
branches:
@@ -91,6 +101,7 @@ workflows:
version: 2
build_and_test:
jobs:
- repository_consistency
- build_py3_torch_and_tf
- build_py3_torch
- build_py3_tf