Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Summpot committed Nov 10, 2024
1 parent d5eed71 commit 694f757
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- uses: bencherdev/bencher@main
- name: Install Hatch
uses: pypa/hatch@install
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Build with hatch
run: hatch build
run: uv build
- name: Run benchmarks
run: uv run pytest --benchmark-json result.json
- name: Benchmark with bencher and pytest
run: |
bencher run \
Expand All @@ -36,5 +39,4 @@ jobs:
--file results.json \
--token '${{ secrets.BENCHER_API_TOKEN }}'
--testbed ubuntu-latest \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
"hatch run pytest"
--github-actions '${{ secrets.GITHUB_TOKEN }}'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist
target
__pycache__
.pytest_cache
.benchmarks
.benchmarks
result.json
145 changes: 145 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 694f757

Please sign in to comment.