Skip to content

Commit

Permalink
Stop using dvc-bench's action
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Aug 21, 2024
1 parent 05ff856 commit 1196372
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
FORCE_COLOR: "1"
PY_COLORS: "1"

jobs:
bench:
name: run benchmarks
Expand All @@ -13,6 +17,24 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: iterative/dvc-bench@main

- uses: hynek/setup-cached-uv@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0

- run: uv pip install '.[tests]' --system
- name: run benchmarks on base branch
run: pytest --benchmark-autosave dvc/testing/benchmarks/ -k 'test_init or test_help'

- uses: actions/checkout@v4
with:
pytest_options: "-k 'test_init or test_help'"
fetch-depth: 0
clean: false
- run: uv pip install '.[tests]' --system
- name: run benchmarks for PR
run: >
pytest --benchmark-compare --benchmark-compare-fail=min:5%
--benchmark-group-by name
dvc/testing/benchmarks/ -k 'test_init or test_help'

0 comments on commit 1196372

Please sign in to comment.