-
Notifications
You must be signed in to change notification settings - Fork 16
62 lines (54 loc) · 1.44 KB
/
test_with_openstudio.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
# Test with OpenStudio container
name: test_with_openstudio
# trigger action on all branches, pull requests and tags
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'
tags:
- '*'
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: nrel/openstudio:3.5.1
steps:
- uses: actions/checkout@v2
- name: show enviroment
shell: bash
run: |
ruby -v
openstudio openstudio_version
openstudio gem_list
- name: set git config options
shell: bash
run: |
git config --global --add safe.directory '*'
- name: install dependencies
shell: bash
run: |
gem install bundler -v '2.1.4'
bundle -v
bundle install
- name: run tests
shell: bash
run: |
bundle exec rake
bundle exec rake openstudio:list_measures
bundle exec rake openstudio:update_measures
bundle exec rake openstudio:test_with_openstudio
- name: collect stats, display and check for failures
shell: bash
run: |
test_dir=$(find -type d -name "test_results")
echo $test_dir
mv $test_dir .
- uses: actions/upload-artifact@v3
name: save artifacts
with:
name: test_results
path: test_results