File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3939 steps :
4040 # Run tests
4141 - uses : neuroinformatics-unit/actions/test@v2
42+ env :
43+ # To not skip test_benchmarks
44+ RUN_BENCHMARKS : true
4245 with :
4346 python-version : ${{ matrix.python-version }}
4447 secret-codecov-token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 55
66import fancylog
77
8+ # Set an environment variable to run benchmarks. This
9+ # is used to selectively run benchmarks through GitHub CI.
10+ RUN_BENCHMARKS = os .getenv ("RUN_BENCHMARKS" , "" ).lower () == "true"
811
9- @pytest .mark .skipif (not os .getenv ("CI" ), reason = "Benchmark skipped outside CI" )
12+
13+ @pytest .mark .skipif (not RUN_BENCHMARKS , reason = "`RUN_BENCHMARKS` was false`" )
1014def test_benchmark (tmp_path , capsys ):
1115 """
1216 A very rough benchmark to check for large regressions
You can’t perform that action at this time.
0 commit comments