Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first working (hope) benchamrk workflow
- Loading branch information
1 parent
896e406
commit e99842d
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Python Benchamrks | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
- name: Run Benchmarks | ||
run: | | ||
pip install numpy pytest pytest-benchmark | ||
pip install -e . | ||
pytest tests/benchmarks/test_benchmarks.py --benchmark-json output.json | ||
# Download previous benchmark result from cache (if exists) | ||
- name: Download previous benchmark data | ||
uses: actions/cache@v1 | ||
with: | ||
path: ./cache | ||
key: ${{ runner.os }}-benchmark | ||
- name: Store benchmark result | ||
uses: rhysd/github-action-benchmark@v1 | ||
with: | ||
name: Python Benchmark with pytest-benchmark | ||
tool: 'pytest' | ||
output-file-path: output.json | ||
# Personal access token to deploy GitHub Pages branch | ||
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
# Push and deploy GitHub pages branch automatically | ||
auto-push: true |
This file was deleted.
Oops, something went wrong.