-
Notifications
You must be signed in to change notification settings - Fork 66
60 lines (50 loc) · 1.51 KB
/
test_benchmarks.yml
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
# Run Tests
name: Test Benchmarks
on:
# Trigger on push or pull request events for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
branches: [ main ]
# Allow running the workflow manually from the Actions tab
workflow_dispatch:
jobs:
latest_benchmarks:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout actions
uses: actions/checkout@v3
with:
sparse-checkout: |
.github/actions
path: actions
- name: prepare_benchmark_environment
uses: ./actions/.github/actions/prepare_environment
with:
NAME: 'latest'
PY: 3.12
NUMPY: 1
SCIPY: 1
PYOPTSPARSE: 'v2.9.1'
SNOPT: '7.7'
OPENMDAO: 'latest'
DYMOS: 'latest'
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
SNOPT_LOCATION_77: ${{ secrets.SNOPT_LOCATION_77 }}
- name: Run benchmarks
shell: bash -l {0}
run: |
echo "============================================================="
echo "Run Benchmarks"
echo "============================================================="
testflo . --timeout=900 --testmatch=bench_test*
- name: Checkout actions (again)
uses: actions/checkout@v3
with:
sparse-checkout: |
.github/actions
path: actions