Skip to content

Commit f977d0e

Browse files
committed
[CI] Add benchmarks to test runs
ghstack-source-id: 4ee660e Pull Request resolved: #2410
1 parent 11c547a commit f977d0e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/unittest/linux/scripts/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-cov
1616
- pytest-mock
1717
- pytest-instafail
18+
- pytest-benchmark
1819
- pytest-rerunfailures
1920
- pytest-timeout
2021
- expecttest

.github/unittest/linux/scripts/run_all.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,14 @@ export MKL_THREADING_LAYER=GNU
189189
export CKPT_BACKEND=torch
190190
export MAX_IDLE_COUNT=100
191191
export BATCHED_PIPE_TIMEOUT=60
192+
export TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1
192193

193194
pytest test/smoke_test.py -v --durations 200
194195
pytest test/smoke_test_deps.py -v --durations 200 -k 'test_gym or test_dm_control_pixels or test_dm_control or test_tb'
196+
197+
# Check that benchmarks run
198+
python -m pytest benchmarks
199+
195200
if [ "${CU_VERSION:-}" != cpu ] ; then
196201
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test \
197202
--instafail --durations 200 -vv --capture no --ignore test/test_rlhf.py \

0 commit comments

Comments
 (0)