Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/check_output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Python 3.10
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pypsa
python -m pip install pypsa==0.31.1
python -m pip install pandas
python -m pip install openpyxl
python -m pip install gurobipy
python -m pip install gurobipy==10.0.1

- shell: bash
id: write-license
Expand All @@ -47,7 +47,7 @@ jobs:
python run_pypsa.py -f test/test_case.xlsx

- name: Save xlsx artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: output_xlsx
path: output_data/test_case/test_prefix.xlsx
Expand All @@ -57,7 +57,7 @@ jobs:
python test/test_compare_output.py

# Uncomment this section to upload output file(s) at the end of this job
#- uses: actions/upload-artifact@v3
#- uses: actions/upload-artifact@v4
# with:
# name: my-artifact
# path: test_output.txt
2 changes: 1 addition & 1 deletion run_pypsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,5 +370,5 @@ def write_result(network, case_dict, component_list, infile, outfile_suffix=""):

# Run PyPSA
n, c_dict, comp_list, comp_attrs = build_network(input_file)
run_pypsa(n, input_file, c_dict, comp_list)
run_pypsa(n, c_dict)
write_result(n, c_dict, comp_list, input_file)
Loading