add pipenv install #16
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: Bencher | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 10 * * 4" | |
jobs: | |
benchmark_pr_with_bencher: | |
name: Continuous Benchmarking with Bencher | |
runs-on: ubuntu-latest | |
env: | |
BENCHER_PROJECT: sl-sh | |
BENCHER_TESTBED: ubuntu-latest-python | |
BENCHER_ADAPTER: python_pytest | |
steps: | |
- run: sudo apt-get update | |
- run: sudo apt install -y python3-pip | |
- run: sudo pip3 install pipenv | |
- uses: actions/checkout@v4 | |
- uses: bencherdev/bencher@main | |
- name: Install requirements | |
run: pipenv install | |
- name: Track Benchmarks with Bencher | |
run: | | |
bencher run --file results.json \ | |
--github-actions "${{ secrets.GITHUB_TOKEN }}" \ | |
--token "${{ secrets.BENCHER_API_TOKEN }}" \ | |
--err \ | |
"pipenv run pytest --benchmark-json results.json benchmarks.py" |