Merge pull request #173 from eringold/epw_encoding #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.8.0 | |
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.4.10' | |
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 | |