-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.03 KB
/
benchmarks.yaml
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
name: "Benchmarks"
on:
workflow_dispatch:
schedule:
- cron: "37 12 * * *"
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install benchmark dependencies
run: |
python -m pip install qa/tools
python -m pip install -r qa/benchmarks/requirements.txt
- name: Test with pytest
run: |
cd qa/benchmarks
mkdir report
pytest \
--random-subset=1 \
--html report/report.html --self-contained-html \
--track-metrics-report=report/metrics.json
env:
OPENEO_AUTH_METHOD: client_credentials
OPENEO_AUTH_CLIENT_CREDENTIALS_CDSEFED: ${{ secrets.OPENEO_AUTH_CLIENT_CREDENTIALS_CDSEFED }}
- name: upload report
uses: actions/upload-artifact@v4
if: always()
with:
name: report
path: qa/benchmarks/report/