Skip to content

Added functionality to test multiple versions of python using tox (#994) #131

Added functionality to test multiple versions of python using tox (#994)

Added functionality to test multiple versions of python using tox (#994) #131

# Store benchmark results as an artifact
name: Benchmark the default branch
on:
# Only run on the default branch
push:
branches:
- main
jobs:
benchmark:
name: Run pytest-benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[testing]"
- name: Run benchmark
run: |
cd tests
pytest benchmark.py --benchmark-min-rounds=4 --benchmark-only -n 0 --no-cov --benchmark-json output.json
- name: Upload the file
uses: actions/upload-artifact@v4
with:
name: benchmark_results
path: tests/output.json