Repository navigation
67 lines (56 loc) · 1.7 KB
/
Copy pathpython-perf.yml
File metadata and controls
67 lines (56 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Python Performance Tests
on:
workflow_call:
inputs:
python-version:
description: "Python version to use"
default: "3.11"
required: false
type: string
jobs:
python-perf:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
submodules: false
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version || '3.11' }}
- name: Cache uv dependencies
uses: actions/cache@v5
with:
path: ~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-uv-
- name: Install Uv
run: pip install uv
- name: Install dependencies
run: make install
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v6
with:
special-characters-workaround: "true"
role-to-assume: arn:aws:iam::370957321024:role/S3EC-Python-Github-test-role
aws-region: us-west-2
- name: Run performance tests
run: make test-perf
env:
CI_S3_BUCKET: ${{ vars.CI_S3_BUCKET }}
CI_KMS_KEY_ALIAS: ${{ vars.CI_KMS_KEY_ALIAS }}
PERF_NUM_ROUNDS: "10"
- name: Generate performance HTML report
if: always()
run: uv run python test/performance/generate_report.py
- name: Upload performance report
if: always()
uses: actions/upload-artifact@v7
with:
name: performance-report
path: perf-results/