Skip to content

Commit

Permalink
[CI] Add benchmarks to test runs
Browse files Browse the repository at this point in the history
ghstack-source-id: e95bf0573035e381f1d4cb18b4afd2cfdbf43ee6
Pull Request resolved: #2410
  • Loading branch information
vmoens committed Sep 2, 2024
1 parent d3a278d commit e10b007
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/unittest/linux/scripts/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-cov
- pytest-mock
- pytest-instafail
- pytest-benchmark
- pytest-rerunfailures
- pytest-timeout
- expecttest
Expand Down
5 changes: 5 additions & 0 deletions .github/unittest/linux/scripts/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,14 @@ export MKL_THREADING_LAYER=GNU
export CKPT_BACKEND=torch
export MAX_IDLE_COUNT=100
export BATCHED_PIPE_TIMEOUT=60
export TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1

pytest test/smoke_test.py -v --durations 200
pytest test/smoke_test_deps.py -v --durations 200 -k 'test_gym or test_dm_control_pixels or test_dm_control or test_tb'

# Check that benchmarks run
python -m pytest benchmarks

if [ "${CU_VERSION:-}" != cpu ] ; then
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test \
--instafail --durations 200 -vv --capture no --ignore test/test_rlhf.py \
Expand Down

0 comments on commit e10b007

Please sign in to comment.