Skip to content

Commit

Permalink
Merge pull request #313 from lincc-frameworks/issue/267/upgrade-asv
Browse files Browse the repository at this point in the history
Upgrade asv version
  • Loading branch information
camposandro authored Oct 31, 2023
2 parents 788de82 + bb2231a commit 8330eb6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install asv==0.5.1 virtualenv tabulate
pip install asv==0.6.1 virtualenv tabulate

- name: Configure git
run: |
Expand All @@ -86,7 +86,7 @@ jobs:
fi

- name: Run ASV for the main branch
run: asv run ALL --skip-existing
run: asv run ALL --skip-existing --verbose

- name: Submit new results to the "benchmarks" branch
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install asv==0.5.1 virtualenv
pip install asv==0.6.1 virtualenv

- name: Create ASV machine config file
run: asv machine --machine gh-runner --yes
Expand All @@ -67,8 +67,8 @@ jobs:

if [ -f $HASH_FILE ]; then
PREV_HASH=$(cat $HASH_FILE)
asv continuous $PREV_HASH $CURRENT_HASH || true
asv compare $PREV_HASH $CURRENT_HASH --sort ratio
asv continuous $PREV_HASH $CURRENT_HASH --verbose || true
asv compare $PREV_HASH $CURRENT_HASH --sort ratio --verbose
fi

echo $CURRENT_HASH > $HASH_FILE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install asv==0.5.1 virtualenv tabulate lf-asv-formatter
pip install asv==0.6.1 virtualenv tabulate lf-asv-formatter

- name: Get current job logs URL
uses: Tiryoh/gha-jobid-action@v0
Expand All @@ -77,9 +77,9 @@ jobs:
run: |
git remote add upstream https://github.com/{% raw %}${{ github.repository }}{% endraw %}.git
git fetch upstream
asv continuous upstream/main HEAD || true
asv compare upstream/main HEAD --sort ratio | tee output
python -m lf_asv_formatter
asv continuous upstream/main HEAD --verbose || true
asv compare upstream/main HEAD --sort ratio --verbose | tee output
python -m lf_asv_formatter --asv_version "$(echo asv --version)"
printf "\n\nClick [here]($STEP_URL) to view all benchmarks." >> output
env:
STEP_URL: "{% raw %}${{ steps.jobs.outputs.html_url }}{% endraw %}#step:8:1"
Expand Down
2 changes: 1 addition & 1 deletion python-project-template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dev = [
"numpy", # Used in sample notebook intro_notebook.ipynb
{%- endif %}
{%- if include_benchmarks %}
"asv==0.5.1", # Used to compute performance benchmarks
"asv==0.6.1", # Used to compute performance benchmarks
{%- endif %}
]

Expand Down

0 comments on commit 8330eb6

Please sign in to comment.