Skip to content

Commit

Permalink
enforce ordering in CI config
Browse files Browse the repository at this point in the history
update
  • Loading branch information
lixiliu committed Sep 14, 2023
1 parent 32dc0e7 commit 5ac7506
Showing 1 changed file with 28 additions and 47 deletions.
75 changes: 28 additions & 47 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
path: resources/options_lookup.tsv
name: options_lookup

unit-tests-1:
unit-tests:
runs-on: ubuntu-latest
needs: [format-files]
container:
Expand All @@ -40,24 +40,45 @@ jobs:
- name: Install gems
run: |
rm -f Gemfile.lock && bundle install
- name: Download formatted options_lookup
uses: actions/download-artifact@v3
with:
path: resources
name: options_lookup

- name: Run integrity checks for all projects
run: |
bundle exec rake unit_tests:project_integrity_checks
- name: Run all integrity check unit tests
run: |
bundle exec rake unit_tests:integrity_check_tests
- name: Run all measure tests
run: |
bundle exec rake unit_tests:measure_tests
- name: Upload feature samples
uses: actions/upload-artifact@v3
with:
path: resources/buildstock.csv
name: feature_samples

- name: Store code coverage
uses: actions/upload-artifact@v3
with:
path: coverage
name: coverage

precomputed-buildstocks:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
needs: [unit-tests]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Download and Install OpenStudio
run: |
wget -q https://github.com/NREL/OpenStudio/releases/download/v3.6.1/OpenStudio-3.6.1+bb9481519e-Ubuntu-20.04-x86_64.deb
Expand All @@ -76,49 +97,9 @@ jobs:
path: test/tests_yml_files/yml_precomputed*/buildstock*.csv
name: precomputed_buildstocks

unit-tests-2:
runs-on: ubuntu-latest
needs: [format-files]
container:
image: docker://nrel/openstudio:3.6.1
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Install gems
run: |
rm -f Gemfile.lock && bundle install
- name: Download formatted options_lookup
uses: actions/download-artifact@v3
with:
path: resources
name: options_lookup

- name: Run all integrity check unit tests
run: |
bundle exec rake unit_tests:integrity_check_tests
- name: Run all measure tests
run: |
bundle exec rake unit_tests:measure_tests
- name: Upload feature samples
uses: actions/upload-artifact@v3
with:
path: resources/buildstock.csv
name: feature_samples

- name: Store code coverage
uses: actions/upload-artifact@v3
with:
path: coverage
name: coverage

analysis-tests:
runs-on: ubuntu-latest
needs: [format-files]
needs: [precomputed-buildstocks]
container:
image: docker://nrel/openstudio:3.6.1
steps:
Expand Down Expand Up @@ -342,7 +323,7 @@ jobs:

update-results:
runs-on: ubuntu-latest
needs: [integration-tests]
needs: [integration-tests, precomputed-buildstocks]
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 5ac7506

Please sign in to comment.