diff --git a/.github/workflows/check_output.yml b/.github/workflows/check_output.yml index e686de6..78b23fe 100644 --- a/.github/workflows/check_output.yml +++ b/.github/workflows/check_output.yml @@ -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 @@ -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 @@ -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 diff --git a/run_pypsa.py b/run_pypsa.py index 4d2307f..b88d23d 100644 --- a/run_pypsa.py +++ b/run_pypsa.py @@ -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)