Skip to content

Specify path to asv config file #5

Specify path to asv config file

Specify path to asv config file #5

Workflow file for this run

# This workflow will install Python dependencies, run benchmarks with airspeed velocity (asv)
# and publish the results to a dashboard on GH Pages.
name: Run benchmarks with airspeed velocity
on:
push:
branches: [ main ]
env:
ASV_CONFIG: benchmarks/asv.config.json
jobs:
install-python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
run-asv:
needs: install-python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Change to benchmarks directory
run: cd benchmarks/
- name: Run benchmarks with asv
run: asv run --config $ASV_CONFIG
- name: Publish results to GH-pages
run: asv gh-pages --config $ASV_CONFIG