gha: run benchmarks on PRs (#6733)

This commit is contained in:
Ruslan Kuprieiev
2021-10-05 14:18:43 +03:00
committed by GitHub
parent ee823a59b9
commit 7b68a6f0ca
+19
View File
@@ -0,0 +1,19 @@
name: benchmarks
on: [pull_request, workflow_dispatch]
jobs:
bench:
name: run benchmarks
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04]
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: iterative/dvc-bench@master
with:
pytest_options: "${{ github.event_name == 'workflow_dispatch' && '' || '-k test_init -k test_help' }}"