Skip to content

Commit

Permalink
Pin ubuntu-22.04 while GitHub works on fixing ubuntu-latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Oct 16, 2024
1 parent 2dd566f commit 301ae67
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
run-unit-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container:
image: docker://nrel/openstudio:3.8.0
steps:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
path: docs/_build/html/

run-workflow1-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container:
image: docker://nrel/openstudio:3.8.0
steps:
Expand All @@ -98,7 +98,7 @@ jobs:
name: results-workflow1-tests

run-workflow2-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
container:
image: docker://nrel/openstudio:3.8.0
steps:
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
& .\OpenStudio-${env:OS_VERSION}+${env:OS_SHA}-Windows\bin\openstudio.exe workflow\run_simulation.rb -x workflow\sample_files\base.xml --hourly ALL --add-component-loads --add-stochastic-schedules
merge-results:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [run-workflow1-tests, run-workflow2-tests, run-unit-tests]
steps:
- uses: actions/checkout@v4
Expand All @@ -160,7 +160,7 @@ jobs:
mkdir workflow/tests/test_results
cp -r test_results/results* workflow/tests/test_results
cd workflow/tests
pip install pandas --break-system-packages
pip install pandas
for csv in test_results/*1_*.csv; do csv2="${csv/1_/2_}"; csv_out="${csv/1_/_}"; python merge.py $csv $csv2 $csv_out; rm $csv; rm $csv2; done
- name: Store results
Expand All @@ -171,7 +171,7 @@ jobs:

compare-results:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: merge-results
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -206,10 +206,10 @@ jobs:
mkdir workflow/tests/test_results
cp -r test_results/results* workflow/tests/test_results
pip install numpy --break-system-packages
pip install pandas --break-system-packages
pip install plotly --break-system-packages
pip install kaleido --break-system-packages
pip install numpy
pip install pandas
pip install plotly
pip install kaleido
python workflow/tests/compare.py -a results
python workflow/tests/compare.py -a visualize
Expand All @@ -221,7 +221,7 @@ jobs:
name: comparisons

update-results:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: merge-results
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 301ae67

Please sign in to comment.