Skip to content

Commit

Permalink
Add detectron2 CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsRogge committed Aug 5, 2021
1 parent 32bd570 commit feab66b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Expand Up @@ -524,6 +524,41 @@ jobs:
- run: pip install requests
- run: python ./utils/link_tester.py

run_tests_detectron2:
working_directory: ~/transformers
docker:
- image: circleci/python:3.7
environment:
OMP_NUM_THREADS: 1
TRANSFORMERS_IS_CI: yes
resource_class: xlarge
parallelism: 1
steps:
- checkout
- restore_cache:
keys:
- v0.4-torch-{{ checksum "setup.py" }}
- v0.4-{{ checksum "setup.py" }}
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: pip install --upgrade pip
- run: pip install .[sklearn,torch,testing,sentencepiece,speech,vision,timm]
- run: python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
- save_cache:
key: v0.4-torch-{{ checksum "setup.py" }}
paths:
- '~/.cache/pip'
- run: python utils/tests_fetcher.py | tee test_preparation.txt
- store_artifacts:
path: ~/transformers/test_preparation.txt
- run: |
if [ -f test_list.txt ]; then
python -m pytest -n 3 --dist=loadfile -s --make-reports=tests_torch $(cat test_list.txt) | tee tests_output.txt
fi
- store_artifacts:
path: ~/transformers/tests_output.txt
- store_artifacts:
path: ~/transformers/reports

# TPU JOBS
run_examples_tpu:
docker:
Expand Down

0 comments on commit feab66b

Please sign in to comment.