Skip to content

Commit

Permalink
starting actions from scratch pt 16
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoarbitrio committed Sep 28, 2020
1 parent 20fddcf commit 0b60ae6
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: create python env and run tests
- uses: |
actions/checkout@v2
actions/setup-python@v1
- run: |
pip install numpy pytest pytest-benchmark
pip install -e .
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'
uses: |
actions/checkout@v2
actions/setup-python@v1
run: |
pip install numpy pytest pytest-benchmark
pip install -e .
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 0b60ae6

Please sign in to comment.