Skip to content

Commit

Permalink
first working (hope) benchamrk workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Sep 28, 2020
1 parent 896e406 commit e99842d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/benchmarks.yml
@@ -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
2 changes: 0 additions & 2 deletions .github/workflows/cache.yml

This file was deleted.

0 comments on commit e99842d

Please sign in to comment.