Skip to content

Commit

Permalink
Move ASV config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Aug 12, 2024
1 parent d505fab commit 92b9146
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/asv_benchmarks_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
PYTHON_VERSION: "3.10"
WORKING_DIR: ${{ github.workspace }}/src
BENCHMARKS_OUTPUT: ${{ github.workspace }}/benchmarks_output
BENCHMARKS_OUTPUT: ${{ github.workspace }}/results

jobs:
benchmark-pr:
Expand Down Expand Up @@ -36,8 +36,11 @@ jobs:
run: asv machine --machine gh-runner --yes

- name: Run Benchmarks - `PR HEAD` vs `main`
env:
HF_TOKEN: ${{ vars.HF_TOKEN }}
run: |
# prepare main branch for comparison
echo $HF_TOKEN
git remote add upstream https://github.com/${{ github.repository }}.git
git fetch upstream main
Expand Down
2 changes: 1 addition & 1 deletion asv.conf.json → src/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"HEAD"
],
"build_command": [
"python -mpip .",
"python -mpip install .",
"PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}",
],
"environment_type": "virtualenv",
Expand Down

0 comments on commit 92b9146

Please sign in to comment.