Run performance tests on a host with dedicated CPUs #5
This file contains hidden or 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: Performance tests 1 | |
| on: | |
| schedule: | |
| - cron: '0 8 * * *' # Run at 8:00 daily | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - dev/.* | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'dev_requirements.txt' | |
| - 'pyproject.toml' | |
| - '.github/workflows/tests-performance.yml' | |
| jobs: | |
| test: | |
| runs-on: gcp-perf-test-dedicated | |
| container: | |
| image: ubuntu:24.04 | |
| options: --cpus 0.5 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install system dependencies | |
| run: | | |
| apt-get update && apt-get install -y git | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip && | |
| pip install -r dev_requirements.txt | |
| - name: Run performance tests | |
| run: | | |
| pytest --junitxml="test-results/test-performance.xml" tests/performance | |
| - name: Report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() | |
| with: | |
| report_paths: "./test-results/test-performance*.xml" | |
| update_check: true | |
| annotate_notice: true | |
| job_name: "Performance tests" |