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: 9eb74aab293e415f66f2969ab2a10db72d08b12d
Pull Request resolved: #2410
  • Loading branch information
vmoens committed Sep 16, 2024
1 parent cfccc27 commit 178104a
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 178104a

Please sign in to comment.