-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Doctests * Limit to 4 decimals * Try with separate PT/TF tests * Remove test for TF * Ellips the predictions * Doctest continue on failure Co-authored-by: Sylvain Gugger <sylvain.gugger@gmail.com>
- Loading branch information
1 parent
3f52c68
commit 53b38d6
Showing
4 changed files
with
79 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Doctests | ||
|
||
on: | ||
push: | ||
branches: | ||
- doctest* | ||
repository_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
|
||
env: | ||
HF_HOME: /mnt/cache | ||
TRANSFORMERS_IS_CI: yes | ||
RUN_SLOW: yes | ||
OMP_NUM_THREADS: 16 | ||
MKL_NUM_THREADS: 16 | ||
PYTEST_TIMEOUT: 600 | ||
|
||
jobs: | ||
run_doctests: | ||
runs-on: [self-hosted, docker-gpu, single-gpu] | ||
container: | ||
image: pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime | ||
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ | ||
steps: | ||
- name: Launcher docker | ||
uses: actions/checkout@v2 | ||
|
||
- name: NVIDIA-SMI | ||
run: | | ||
nvidia-smi | ||
- name: Install dependencies | ||
run: | | ||
apt -y update && apt install -y libsndfile1-dev | ||
pip install --upgrade pip | ||
pip install .[dev] | ||
- name: Run doctests | ||
run: | | ||
pytest --doctest-modules $(cat utils/documentation_tests.txt) -sv --doctest-continue-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docs/source/quicktour.rst | ||
docs/source/task_summary.rst |