Skip to content

Commit

Permalink
Merge branch 'main' into olex/extend-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-krishna authored Nov 19, 2024
2 parents b14fbbe + 4ddec68 commit 64b1240
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 39 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,13 @@ jobs:
GAMS_LICENSE: ${{ secrets.GAMS_LICENSE }}
if: ${{ env.GAMS_LICENSE != '' }}
run: |
curl https://d37drm4t2jghv5.cloudfront.net/distributions/44.1.0/linux/linux_x64_64_sfx.exe -o linux_x64_64_sfx.exe
curl https://d37drm4t2jghv5.cloudfront.net/distributions/48.2.0/linux/linux_x64_64_sfx.exe -o linux_x64_64_sfx.exe
chmod +x linux_x64_64_sfx.exe
mkdir GAMS
pushd GAMS
../linux_x64_64_sfx.exe > /dev/null && echo Successfully installed GAMS
export PATH=$PATH:$(pwd)/gams44.1_linux_x64_64_sfx
export PATH=$PATH:$(pwd)/gams48.2_linux_x64_64_sfx
popd
echo Creating license file at $HOME/.local/share/GAMS
mkdir -p $HOME/.local/share/GAMS
echo "$GAMS_LICENSE" > $HOME/.local/share/GAMS/gamslice.txt
ls -l $HOME/.local/share/GAMS/
# ---------- Run tool, check for regressions

Expand All @@ -115,9 +111,9 @@ jobs:
# Save the return code to retcode.txt so that the next step can fail the action
run: |
source .venv/bin/activate
export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams44.1_linux_x64_64_sfx
export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams48.2_linux_x64_64_sfx
(python utils/run_benchmarks.py benchmarks.yml \
--dd --times_dir $GITHUB_WORKSPACE/TIMES_model \
--dd --times_dir $GITHUB_WORKSPACE/xl2times/TIMES_model \
--verbose \
| tee out.txt; \
echo ${PIPESTATUS[0]} > retcode.txt)
Expand All @@ -131,9 +127,7 @@ jobs:
# Useful for testing for (CSV) regressions in forks before creating PRs.
run: |
source .venv/bin/activate
export PATH=$PATH:$GITHUB_WORKSPACE/GAMS/gams44.1_linux_x64_64_sfx
(python utils/run_benchmarks.py benchmarks.yml \
--times_dir $GITHUB_WORKSPACE/TIMES_model \
--verbose \
| tee out.txt; \
echo ${PIPESTATUS[0]} > retcode.txt)
Expand Down
56 changes: 28 additions & 28 deletions benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -380,20 +380,20 @@ benchmarks:
- "SuppXLS/Scen_Cohesive.xlsx"
dd_folder: TIMES-NZ-KEA
dd_files:
- "base.dd"
- "newtech_elc_kea.dd"
- "newtechs_industry.dd"
- "newtransport-kea.dd"
- "newtech_agr_kea.dd"
- "newtech_rc.dd"
- "trade_parms.dd"
- "syssettings.dd"
- "base_constraints.dd"
- "re_potentials.dd"
- "loadcurve_com-fr.dd"
- "af_renewable.dd"
- "wem_wcm.dd"
- "cohesive.dd"
- "base"
- "newtech_elc_kea"
- "newtechs_industry"
- "newtransport-kea"
- "newtech_agr_kea"
- "newtech_rc"
- "trade_parms"
- "syssettings"
- "base_constraints"
- "re_potentials"
- "loadcurve_com-fr"
- "af_renewable"
- "wem_wcm"
- "cohesive"
- name: TIMES-NZ-TUI
input_folder: TIMES-NZ
inputs:
Expand Down Expand Up @@ -426,17 +426,17 @@ benchmarks:
- "SuppXLS/Scen_Individualistic.xlsx"
dd_folder: TIMES-NZ-TUI
dd_files:
- "base.dd"
- "newtechs_industry.dd"
- "newtech_elc_tui.dd"
- "newtransport-tui.dd"
- "newtech_agr_tui.dd"
- "newtech_rc.dd"
- "trade_parms.dd"
- "syssettings.dd"
- "base_constraints.dd"
- "re_potentials.dd"
- "loadcurve_com-fr.dd"
- "af_renewable.dd"
- "wem_wcm.dd"
- "individualistic.dd"
- "base"
- "newtechs_industry"
- "newtech_elc_tui"
- "newtransport-tui"
- "newtech_agr_tui"
- "newtech_rc"
- "trade_parms"
- "syssettings"
- "base_constraints"
- "re_potentials"
- "loadcurve_com-fr"
- "af_renewable"
- "wem_wcm"
- "individualistic"
2 changes: 1 addition & 1 deletion setup-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REF_demos_xlsx="34a2a5c044cc0bbea1357de50db2f5f02d575181"
REF_demos_dd="2848a8a8e2fdcf0cdf7f83eefbdd563b0bb74e86"
REF_tim="e820d8002adc6b1526a3bffcc439219b28d0eed5"
REF_tim_gams="703f6a4e1d0bedd95c3ebdae534496f3a7e1b7cc"
REF_TIMES_NZ="c83f2d0e51d692cba27a55032c8f8a2a48e4d425"
REF_TIMES_NZ="d6d7b14f43a89ceca7c4e77ba9122a2c757cdae3"

# If no GitHub token is provided, try to clone using SSH
if [ -z "$GH_PAT_DEMOS_XLSX" ]; then
Expand Down

0 comments on commit 64b1240

Please sign in to comment.