Skip to content

Commit

Permalink
Revert "Patch reports (huggingface#8238)"
Browse files Browse the repository at this point in the history
This reverts commit a36de20.
  • Loading branch information
fabiocapsouza committed Nov 15, 2020
1 parent 3701ed8 commit df2fba9
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions .github/workflows/self-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_tests_torch_failures_short.txt
run: cat reports/report_test_torch_failures_short.txt

- name: Run examples tests on GPU
if: ${{ always() }}
Expand Down Expand Up @@ -158,21 +158,7 @@ jobs:
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_tests_tf_failures_short.txt

- name: Run all pipeline tests on GPU
env:
TF_FORCE_GPU_ALLOW_GROWTH: "true"
OMP_NUM_THREADS: 1
RUN_SLOW: yes
RUN_PIPELINE_TESTS: yes
run: |
source .env/bin/activate
python -m pytest -n 1 --dist=loadfile -s tests -m is_pipeline_test --make_reports=tests_tf_pipelines tests
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_tests_tf_pipelines_failures_short.txt
run: cat reports/report_test_tf_failures_short.txt

- name: Test suite reports artifacts
if: ${{ always() }}
Expand All @@ -191,7 +177,7 @@ jobs:
id: cache
with:
path: .env
key: v1.1-slow_tests_torch_multi_gpu-${{ hashFiles('setup.py') }}
key: v0.1-slow_tests_torch_multi_gpu-${{ hashFiles('setup.py') }}

- name: Python version
run: |
Expand Down Expand Up @@ -236,8 +222,22 @@ jobs:
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_tests_torch_failures_short.txt
run: cat reports/report_test_torch_failures_short.txt

- name: Run examples tests on GPU
if: ${{ always() }}
env:
OMP_NUM_THREADS: 1
RUN_SLOW: yes
run: |
source .env/bin/activate
pip install -r examples/requirements.txt
python -m pytest -n 1 --dist=loadfile -s --make_reports=examples_torch examples
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_examples_torch_failures_short.txt

- name: Run all pipeline tests on GPU
if: ${{ always() }}
env:
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
id: cache
with:
path: .env
key: v1.1-slow_tests_tf_multi_gpu-${{ hashFiles('setup.py') }}
key: v0.1-slow_tests_tf_multi_gpu-${{ hashFiles('setup.py') }}

- name: Python version
run: |
Expand Down Expand Up @@ -311,11 +311,7 @@ jobs:
RUN_SLOW: yes
run: |
source .env/bin/activate
python -m pytest -n 1 --dist=loadfile -s tests --make_reports=tests_tf tests
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_tests_tf_failures_short.txt
python -m pytest -n 1 --dist=loadfile -s ./tests/ --durations=0
- name: Run all pipeline tests on GPU
env:
Expand All @@ -325,11 +321,11 @@ jobs:
RUN_PIPELINE_TESTS: yes
run: |
source .env/bin/activate
python -m pytest -n 1 --dist=loadfile -s tests -m is_pipeline_test --make_reports=tests_tf_pipelines tests
python -m pytest -n 1 --dist=loadfile -s ./tests/ -m is_pipeline_test --durations=50
- name: Failure short reports
if: ${{ always() }}
run: cat reports/report_tests_tf_pipelines_failures_short.txt
run: cat reports/report_test_tf_failures_short.txt

- name: Test suite reports artifacts
if: ${{ always() }}
Expand Down

0 comments on commit df2fba9

Please sign in to comment.