Skip to content

Commit

Permalink
starting actions from scratch pt 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Sep 28, 2020
1 parent 490f7d7 commit 66e9bbc
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,23 @@ jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: pip install numpy pytest pytest-benchmark
- run: pip install -e .
- run: pytest tests/benchmarks/test_benchmarks.py --benchmark-json output.json
- name: create python env and run tests
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- run: pip install numpy pytest pytest-benchmark
- run: pip install -e .
- run: pytest tests/benchmarks/test_benchmarks.py --benchmark-json output.json
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: Python Benchmark with pytest-benchmark
tool: 'pytest'
output-file-path: examples/pytest/output.json
# Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@rhysd'

0 comments on commit 66e9bbc

Please sign in to comment.