Skip to content

Commit

Permalink
Merge pull request #12 from lincc-frameworks/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 bd9dfcb + 9ec4749 commit 718faa1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/asv-main.yml
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
6 changes: 3 additions & 3 deletions .github/workflows/asv-nightly.yml
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
10 changes: 5 additions & 5 deletions .github/workflows/asv-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow will run benchmarks with airspeed velocity (asv) for pull requests.
# It will compare the performance of the main branch with the performance of the merge
# with the new changes and publish a comment with this assessment.
# with the new changes and publish a comment with this assessment.

name: Run ASV benchmarks for PR

Expand Down 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/${{ github.repository }}.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: "${{ steps.jobs.outputs.html_url }}#step:8:1"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dev = [
"ipython", # Also used in building notebooks into Sphinx
"matplotlib", # Used in sample notebook intro_notebook.ipynb
"numpy", # Used in sample notebook intro_notebook.ipynb
"asv==0.5.1", # Used to compute performance benchmarks
"asv", # Used to compute performance benchmarks
]

[build-system]
Expand Down

0 comments on commit 718faa1

Please sign in to comment.