-
Notifications
You must be signed in to change notification settings - Fork 68
93 lines (81 loc) · 2.47 KB
/
test_workflow.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Run Tests
name: Aviary Tests
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:
pre_commit:
# run pre-commit checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.1
test_ubuntu:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
# oldest versions of openmdao/dymos
# Note: bugfixes sometimes require incrementing the minimal version of openmdao or dymos.
- NAME: oldest
PY: '3.9'
NUMPY: '1.20'
SCIPY: '1.6'
PYOPTSPARSE: 'v2.9.1'
SNOPT: '7.7'
OPENMDAO: '3.35.0'
DYMOS: '1.8.0'
# latest versions of openmdao/dymos
- NAME: latest
PY: '3.10'
NUMPY: 1
SCIPY: 1
PYOPTSPARSE: 'v2.9.1'
SNOPT: '7.7'
OPENMDAO: 'latest'
DYMOS: 'latest'
steps:
- name: Checkout actions
uses: actions/checkout@v4
with:
sparse-checkout: |
.github/actions
path: actions
- name: prepare_testing_environment
uses: ./actions/.github/actions/prepare_environment
with:
NAME: ${{ matrix.NAME }}
PY: ${{ matrix.PY }}
NUMPY: ${{ matrix.NUMPY }}
SCIPY: ${{ matrix.SCIPY }}
PYOPTSPARSE: ${{ matrix.PYOPTSPARSE }}
SNOPT: ${{ matrix.SNOPT }}
OPENMDAO: ${{ matrix.OPENMDAO }}
DYMOS: ${{ matrix.DYMOS }}
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
SNOPT_LOCATION_77: ${{ secrets.SNOPT_LOCATION_77 }}
- name: Run tests
shell: bash -l {0}
run: |
echo "============================================================="
echo "Run Tests"
echo "============================================================="
testflo . -n 1 --timeout=200 --show_skipped --coverage --coverpkg aviary
- name: Checkout actions (again)
uses: actions/checkout@v3
with:
sparse-checkout: |
.github/actions
path: actions