From 7b68a6f0ca3cbf323ffab355935cb1d76c834786 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 5 Oct 2021 14:18:43 +0300 Subject: [PATCH] gha: run benchmarks on PRs (#6733) --- .github/workflows/benchmarks.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/benchmarks.yaml diff --git a/.github/workflows/benchmarks.yaml b/.github/workflows/benchmarks.yaml new file mode 100644 index 000000000..58caf4ee1 --- /dev/null +++ b/.github/workflows/benchmarks.yaml @@ -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' }}" +