-
Notifications
You must be signed in to change notification settings - Fork 1
150 lines (145 loc) · 4.93 KB
/
continuous_integration.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: Continuous Integration
on:
pull_request:
push:
branches:
- "develop"
tags:
- '*'
jobs:
model_articulation_tests:
name: Model Articulation Tests
container: nrel/openstudio:3.4.0
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup
run: |
gem install bundler -v 2.4.22
bundle install
- name: Building Section Spec
run: bundle exec rspec spec/tests/model_articulation_test/building_section_spec.rb
if: always()
- name: Building Spec
run: bundle exec rspec spec/tests/model_articulation_test/building_spec.rb
if: always()
- name: Envelope System Spec
run: bundle exec rspec spec/tests/model_articulation_test/envelope_system_spec.rb
if: always()
- name: Facility Spec
run: bundle exec rspec spec/tests/model_articulation_test/facility_spec.rb
if: always()
- name: HVAC System Spec
run: bundle exec rspec spec/tests/model_articulation_test/hvac_system_spec.rb
if: always()
- name: Loads System Spec
run: bundle exec rspec spec/tests/model_articulation_test/loads_system_spec.rb
if: always()
- name: Lighting System Spec
run: bundle exec rspec spec/tests/model_articulation_test/lighting_system_type_spec.rb
if: always()
- name: SHW System Spec
run: bundle exec rspec spec/tests/model_articulation_test/service_hot_water_system_spec.rb
if: always()
- name: Site Spec
run: bundle exec rspec spec/tests/model_articulation_test/site_spec.rb
if: always()
- name: Hospital Occupancy Type Spec
run: bundle exec rspec spec/tests/model_articulation_test/hospital_occupancy_type_spec.rb
if: always()
- name: Occupancy Types Spec
run: bundle exec rspec spec/tests/model_articulation_test/occupancy_types_spec.rb
if: always()
# Fails sometimes due to connection issues, so we exclude it here
# - name: Weather File Download
# run: bundle exec rspec spec/tests/model_articulation_test/weather_file_download_spec.rb
# if: always()
translator_tests:
name: Translator Tests
container: nrel/openstudio:3.4.0
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup
run: |
gem install bundler -v 2.4.22
bundle install
- name: Translator Example Spec
run: bundle exec rspec spec/tests/translator_spec.rb
if: always()
- name: Translator Sizing Run Spec
run: bundle exec rspec spec/tests/translator_sizing_run_spec.rb
if: always()
- name: Translator Scenario Generation Specs
run: bundle exec rspec spec/tests/translator_scenario_generation_spec.rb
if: always()
- name: Translator Scenario Simulation Spec
run: bundle exec rspec spec/tests/translator_scenario_simulations_spec.rb
if: always()
report_and_scenario_tests:
name: Report and Scenario Tests
container: nrel/openstudio:3.4.0
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup
run: |
gem install bundler -v 2.4.22
bundle install
- name: Report Spec
run: bundle exec rspec spec/tests/report_spec.rb
if: always()
- name: Utility Spec
run: bundle exec rspec spec/tests/utility_spec.rb
if: always()
- name: Scenario Spec
run: bundle exec rspec spec/tests/scenario_spec.rb
if: always()
- name: TimeSeries Spec
run: bundle exec rspec spec/tests/time_series_spec.rb
if: always()
- name: ResourceUse Spec
run: bundle exec rspec spec/tests/resource_use_spec.rb
if: always()
- name: AllResourceTotal Spec
run: bundle exec rspec spec/tests/all_resource_total_spec.rb
if: always()
- name: WorkflowMaker Spec
run: bundle exec rspec spec/tests/workflow_maker_spec.rb
if: always()
other_specs:
name: Other Tests
container: nrel/openstudio:3.4.0
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup
run: |
gem install bundler -v 2.4.22
bundle install
- name: BuildingSync Spec
run: bundle exec rspec spec/tests/building_sync_spec.rb
if: always()
- name: EPW Test Spec
run: bundle exec rspec spec/tests/epw_test_spec.rb
if: always()
- name: Constants Spec
run: bundle exec rspec spec/tests/constants_spec.rb
if: always()
- name: Generator Spec
run: bundle exec rspec spec/tests/generator_spec.rb
if: always()
- name: Helper Spec
run: bundle exec rspec spec/tests/helper_spec.rb
if: always()
- name: XMLGetSet Spec
run: bundle exec rspec spec/tests/xml_get_set_spec.rb
if: always()
# selection tool is not working with ASHRAE level 1.5 yet
# - name: Selection Tool Spec
# run: bundle exec rspec spec/tests/selection_tool_spec.rb
# if: always()