File tree Expand file tree Collapse file tree 2 files changed +34
-37
lines changed
Expand file tree Collapse file tree 2 files changed +34
-37
lines changed Original file line number Diff line number Diff line change 1- name : pre-commit
1+ name : Performance tests
22
33on :
4- pull_request :
54 push :
6- branches :
7- - main
8- - dev/.*
5+ pull_request :
96
107jobs :
11- pre-commit :
12- runs-on : tools-gha-runners
8+ test :
9+ runs-on : gcp-perf-test-dedicated
10+ container :
11+ image : ubuntu:24.04
12+ options : --cpus 1
13+ timeout-minutes : 30
1314 steps :
14- - name : Checkout repository
15- uses : actions/checkout@v4
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Install Python
19+ uses : actions/setup-python@v5
20+ with :
21+ python-version : " 3.10"
22+
23+ - name : Install system dependencies
24+ run : |
25+ apt-get update && apt-get install -y git
1626
17- - name : Install Python
18- uses : actions/setup-python@v5
19- with :
20- python-version : " 3.10 "
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip &&
30+ pip install -r dev_requirements.txt
2131
22- - name : Run pre-commit
23- uses : pre-commit/action@v3.0.1
32+ - name : Run performance tests
33+ run : |
34+ pytest --junitxml="test-results/test-performance.xml" tests/performance
Original file line number Diff line number Diff line change 11name : Performance tests
22
33on :
4- schedule :
5- - cron : ' 0 8 * * *' # Run at 8:00 daily
6- workflow_dispatch :
74 push :
8- branches :
9- - main
10- - dev/.*
115 pull_request :
12- paths :
13- - ' src/**'
14- - ' tests/**'
15- - ' dev_requirements.txt'
16- - ' pyproject.toml'
17- - ' .github/workflows/tests-performance.yml'
186
197jobs :
208 test :
21- runs-on : tools-gha-runners
9+ runs-on : gcp-perf-test-dedicated
10+ container :
11+ image : ubuntu:24.04
12+ options : --cpus 1
2213 timeout-minutes : 30
2314 steps :
2415 - name : Checkout repository
2920 with :
3021 python-version : " 3.10"
3122
23+ - name : Install system dependencies
24+ run : |
25+ apt-get update && apt-get install -y git
26+
3227 - name : Install dependencies
3328 run : |
3429 python -m pip install --upgrade pip &&
3732 - name : Run performance tests
3833 run : |
3934 pytest --junitxml="test-results/test-performance.xml" tests/performance
40-
41- - name : Report
42- uses : mikepenz/action-junit-report@v5
43- if : always()
44- with :
45- report_paths : " ./test-results/test-performance*.xml"
46- update_check : true
47- annotate_notice : true
48- job_name : " Performance tests"
You can’t perform that action at this time.
0 commit comments