build(deps): bump aiohttp from 3.9.0 to 3.9.4 in /server #159
Workflow file for this run
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: Benchmark server | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
benchmark: | |
name: Run pytest-benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Run benchmark | |
run: | | |
cd server | |
pip install -r requirements.txt -r test-requirements.txt | |
pytest buildoutls/bench/slapos.py --benchmark-json ../benchmark-data.json | |
- name: Download previous benchmark data | |
uses: actions/cache@v1 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Initialise base benchmark result (pull request) | |
run: | | |
if test -f ./cache/benchmark-data-main.json ; then cp ./cache/benchmark-data-main.json ./cache/benchmark-data-pull-request.json ; fi | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Store benchmark result (pull request) | |
uses: benchmark-action/github-action-benchmark@v1.13.0 | |
with: | |
name: Python Benchmark with pytest-benchmark | |
tool: "pytest" | |
output-file-path: benchmark-data.json | |
external-data-json-path: ./cache/benchmark-data-pull-request.json | |
alert-threshold: "110%" | |
fail-threshold: "120%" | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Store benchmark result (main) | |
uses: benchmark-action/github-action-benchmark@v1.13.0 | |
with: | |
name: Python Benchmark with pytest-benchmark | |
tool: "pytest" | |
output-file-path: benchmark-data.json | |
external-data-json-path: ./cache/benchmark-data-main.json | |
alert-threshold: "110%" | |
fail-threshold: "120%" | |
if: ${{ github.event_name == 'push' }} |