Fix version in github actions (previous no longer available) #151
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: Performance benchmark | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
benchmark: | |
name: Performance regression check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Setup Poetry package manager | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: 1.1.8 | |
- name: Install Python dependencies | |
run: poetry install | |
- name: Run benchmark tests | |
run: poetry run pytest -W ignore -vv -m benchmark --benchmark-json benchmark.json --benchmark-min-rounds 3 | |
- name: Store benchmark result | |
uses: rhysd/github-action-benchmark@v1 | |
with: | |
tool: "pytest" | |
output-file-path: benchmark.json | |
github-token: ${{ secrets.PAGES_GITHUB_TOKEN }} | |
gh-pages-branch: benchmark-page | |
benchmark-data-dir-path: "." | |
auto-push: true |