Update asv.conf.json #6
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: ASV Benchmark | |
on: | |
push: | |
branches: | |
- main # Run benchmarks on every commit to the main branch | |
workflow_dispatch: | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' # or the version you want to test | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install asv # Install ASV | |
pip install -e ".[test]" # Your project dependencies, if needed | |
- name: Run ASV benchmarks | |
run: | | |
asv machine --yes | |
asv run | |
- name: Deploy HTML report to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: .asv/html |