-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 2.35 KB
/
run-performance-tests.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
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
---
name: Run Performance Tests
on:
workflow_dispatch:
schedule:
# Run at 4am on Mon, Wed Sat
# Jenkins job runs 5am those days to download results from GitHub Actions
- cron: '0 4 * * 1'
- cron: '0 4 * * 3'
- cron: '0 4 * * 6'
jobs:
runscript:
runs-on: ubuntu-latest
steps:
- name: GetCode
uses: actions/checkout@v3
- name: SetupPython
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install hf_hydrodata
python -m pip install subsettools
python -m pip install pytest
- name: Run Performance Tests
env:
TEST_EMAIL_PRIVATE: ${{ secrets.TEST_EMAIL_PRIVATE}}
TEST_PIN_PRIVATE: ${{ secrets.TEST_PIN_PRIVATE}}
TEST_EMAIL_PUBLIC: ${{ secrets.TEST_EMAIL_PUBLIC}}
TEST_PIN_PUBLIC: ${{ secrets.TEST_PIN_PUBLIC}}
run: |
pytest -s performance/test_1pt_1wy.py --wy=2002 --cache=cold
pytest -s performance/test_1pt_1wy.py --wy=2002 --cache=hot
pytest -s performance/test_full_3d_pfb.py --wy=2003 --wy_month=02 --cache=cold
pytest -s performance/test_full_3d_pfb.py --wy=2003 --wy_month=02 --cache=hot
pytest -s performance/test_subset_forcing.py --wy=2007 --cache=cold
pytest -s performance/test_subset_forcing.py --wy=2007 --cache=hot
pytest -s performance/test_subset_forcing_users.py --wy 2009 --cache=cold --users=3
pytest -s performance/test_subset_forcing_users.py --wy 2009 --cache=hot --users=3
pytest -s performance/test_hydrogen_forcing.py --wy 1985 --cache=cold --users=-4
pytest -s performance/test_hydrogen_forcing.py --wy 1985 --cache=hot --users=-4
pytest -s performance/test_cw3e_subset.py --wy 2019 --cache=cold
pytest -s performance/test_cw3e_subset.py --wy 2019 --cache=hot
pytest -s performance/test_1pt_1h.py --wy=1995 --cache=cold
pytest -s performance/test_1pt_1h.py --wy=1995 --cache=hot
echo "Show ./artifacts/log_artifact.csv file"
cat ./artifacts/log_artifact.csv
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: log-artifacts
path: ./artifacts/