benchmarks #6991
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: benchmarks | |
on: [pull_request, workflow_dispatch] | |
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 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
cache-dependency-glob: pyproject.toml | |
- if: runner.os == 'macOS' | |
run: | | |
brew install gnu-time | |
echo "time=gtime" >> "$GITHUB_ENV" | |
shell: bash | |
- if: runner.os != 'macOS' | |
run: echo "time=time" >> "$GITHUB_ENV" | |
shell: bash | |
- run: uv pip install '.[dev]' --system | |
- run: curl -O https://image-net.org/data/bboxes_annotations.tar.gz | |
- run: tar zxvf bboxes_annotations.tar.gz | |
- run: rm bboxes_annotations.tar.gz | |
- run: | | |
for file in ./*.tar.gz; do | |
tar zxvf $file | |
done | |
shell: bash | |
- run: rm ./*.tar.gz | |
shell: bash | |
- run: '"$(which ${time})" -v dvc add Annotation/' | |
shell: bash | |
- run: cat ./*.dvc | |
shell: bash | |
- run: '"$(which ${time})" -v dvc add Annotation/' | |
shell: bash |