Update version for release (#205) #165
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: TrustyAI Python benchmarks (merge) | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
deployments: write | |
pages: write | |
pull-requests: write | |
jobs: | |
benchmark: | |
if: github.event.pull_request.merged == 'true' | |
name: Run pytest-benchmark benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: "11" | |
check-latest: true | |
- uses: stCarolas/setup-maven@v4 | |
with: | |
maven-version: 3.8.1 | |
- name: Build explainability-core | |
uses: ./.github/actions/build-core | |
- name: Install TrustyAI Python package | |
run: | | |
pip install -r requirements-dev.txt | |
pip install . | |
- name: Run benchmark | |
run: | | |
pytest tests/benchmarks/benchmark.py --benchmark-json tests/benchmarks/results.json | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: TrustyAI continuous benchmarks | |
tool: 'pytest' | |
output-file-path: tests/benchmarks/results.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
gh-pages-branch: gh-pages | |
alert-threshold: '200%' | |
comment-on-alert: true | |
comment-always: true | |
fail-on-alert: false | |
alert-comment-cc-users: '@ruivieira' |