Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b05ba4c
Improve GitHub testing workflow
Mar 18, 2026
cbd248c
Update Test
Mar 18, 2026
75ba342
Commented some workflows Test
Mar 19, 2026
f1624a1
Delete test-coverage.yml
Mar 19, 2026
ebb47ab
Change test_sample
Mar 19, 2026
e0156a0
Test23031
Mar 23, 2026
0b0b659
Test23032
Mar 23, 2026
dcaf1e1
Test23033 add tests.yml
Mar 23, 2026
371aa56
Test23035 add requirements
Mar 23, 2026
bb122fc
Test23036 add requirements
Mar 23, 2026
f83120e
Test23037
Mar 23, 2026
9a5f670
Test23038 add requirements
Mar 23, 2026
7666158
Test23039 add tests
Mar 23, 2026
5e68d66
Test230310 add test coverage
Mar 23, 2026
6455467
Test230311 add requeriments
Mar 23, 2026
8b1ce02
Test230312 add conftest
Mar 23, 2026
13a1e58
Test230313 add testcoverage
Mar 23, 2026
0d76b19
Test230314 add conftest
Mar 23, 2026
355a2af
Test230315 add conftest
Mar 23, 2026
faa008f
Test230316 add db
Mar 23, 2026
f43a994
Test230317 add conftest
Mar 23, 2026
a1e6420
Test230318 add conftest
Mar 23, 2026
faf1b3d
Test230319 add tests
Mar 23, 2026
ab7ea76
Test230320 add tests
Mar 23, 2026
9139121
Test24031 add tests
Mar 24, 2026
3047b6c
Test24032 add tests-coverage
Mar 24, 2026
2acded3
Test24033 add tests-coverage
Mar 24, 2026
048fdb5
Test24034 add tests
Mar 24, 2026
eb938a5
Test24035 add tests
Mar 24, 2026
7fdf016
Test24036 add tests
Mar 24, 2026
d3f7c5f
Test24037 trigger test
Mar 24, 2026
0a1a2ad
Test25031 trigger test
Mar 25, 2026
8bd9e3a
update
Apr 15, 2026
6bc8827
update
Apr 15, 2026
7db18c0
update
Apr 16, 2026
2a9f399
update
Apr 16, 2026
8d0d14a
update
Apr 16, 2026
9cf7a2d
update
Apr 16, 2026
57a70c8
update
Apr 16, 2026
d59b7a5
update
Apr 16, 2026
de89697
update
Apr 17, 2026
c95b7eb
update
Apr 20, 2026
64a64de
update
Apr 20, 2026
6dcd577
update
Apr 21, 2026
1bf0f1e
update
Apr 21, 2026
b5537f7
update
Apr 21, 2026
723be3c
update
Apr 21, 2026
0e1e240
update
Apr 21, 2026
a1bf879
update
Apr 21, 2026
2a1e6a7
update
Apr 21, 2026
20892be
update
Apr 21, 2026
ddc5dee
update
Apr 21, 2026
d3c7546
update
Apr 21, 2026
2d96e03
update
Apr 23, 2026
5059c94
update
Apr 23, 2026
839b63d
update
Apr 23, 2026
357513b
update
Apr 24, 2026
c23a920
update
Apr 24, 2026
4d3cb68
update
Apr 24, 2026
1331d7c
update
May 5, 2026
cd29740
update
May 5, 2026
44e05a3
update
May 5, 2026
375f933
update
May 5, 2026
61b9fb1
update
May 6, 2026
9a1fc00
update
May 6, 2026
3801310
update
May 6, 2026
b1c2837
update
May 6, 2026
49fd2cc
update
May 6, 2026
ef3381a
Merge branch 'dev' into 600-feature-improve-github-testing
VeronicaHG May 7, 2026
a3f4e1f
update
May 7, 2026
5a618ac
update
May 7, 2026
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
32 changes: 16 additions & 16 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: "Docs link check"
on: [push]
name: "Docs link check"
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install -r rtd_requirements.txt
- name: Check doc links
run: |
sphinx-build . -b linkcheck -d _build/doctrees _build/html
working-directory: ./doc
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install -r rtd_requirements.txt
- name: Check doc links
run: |
sphinx-build . -b linkcheck -d _build/doctrees _build/html
working-directory: ./doc
15 changes: 11 additions & 4 deletions .github/workflows/tests-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

# Tests with pytest the package and monitors the covarage and sends it to coveralls.io
# Coverage is only send to coveralls.io when no pytest tests fail
name: "Tests & Coverage"

# Abbrechen laufender Workflows bei neuem Push auf denselben Branch
# Abbrechen laufender Workflows bei neuem Push auf denselben Branch Test test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on: [push]
on:
push:
pull_request:



jobs:

Expand Down Expand Up @@ -106,7 +109,7 @@ jobs:
needs: queue

strategy:
fail-fast: false
#fail-fast: false
matrix:
include:
# Coverage job (Linux only)
Expand Down Expand Up @@ -189,3 +192,7 @@ jobs:
OEP_TOKEN_KH: ${{ secrets.OEP_TOKEN_KH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github

- name: Run all tests on PR
if: github.event_name == 'pull_request'
run: pytest
92 changes: 92 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Run Fast Tests on Push only

on:
push:


pull_request:



jobs:
fast-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r rtd_requirements.txt
pip install -e .
pip install pytest-html

- name: Run fast tests
run: |
python -m pytest -m "fast" -vv \
--runslow \
--runonlinux \
--html=fast-report.html \
--self-contained-html \
--junitxml=fast-report.xml



- name: Upload fast test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: fast-test-reports
path: |
fast-report.xml
fast-report.html

- name: Run non-fast tests
run: |
python tests/run_tests_from_file.py ci/non_fast_tests.txt

full-tests:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r rtd_requirements.txt
pip install -e .
pip install pytest-html

- name: Run full test suite
run: |
python -m pytest -vv \
--junitxml=full-report.xml \
--html=full-report.html \
--self-contained-html \
> full-output.txt 2>&1

- name: Upload full test reports
uses: actions/upload-artifact@v4
with:
name: full-test-reports
path: |
full-report.xml
full-report.html
full-output.txt
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# exclude certain types of files
*.doctree
*.txt
#*.txt
*.html
*.js
*.inv
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<img align="right" width="200" height="200" src="https://raw.githubusercontent.com/openego/eDisGo/dev/doc/images/edisgo_logo.png">

Test update for CI

# Overview

Expand Down
441 changes: 441 additions & 0 deletions all_tests.txt

Large diffs are not rendered by default.

441 changes: 441 additions & 0 deletions ci/all_tests.txt

Large diffs are not rendered by default.

115 changes: 115 additions & 0 deletions ci/fast_tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Fast tests generated automatically
# Lines starting with # are ignored

tests/flex_opt/test_battery_storage_operation.py::TestStorageOperation::test_operating_strategy
tests/flex_opt/test_charging_strategy.py::TestChargingStrategy::test_charging_strategy
tests/flex_opt/test_charging_strategy.py::TestChargingStrategy::test_charging_strategy_with_subset_of_parks
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_mv_line_max_relative_overload
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_lv_line_max_relative_overload
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_lines_allowed_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test__lines_allowed_load_voltage_level
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_lines_relative_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_hv_mv_station_max_overload
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_mv_lv_station_max_overload
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test__station_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test__station_allowed_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_stations_allowed_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_stations_relative_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_components_relative_load
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_voltage_issues
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test__voltage_issues_helper
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_allowed_voltage_limits
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test__mv_allowed_voltage_limits
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test__lv_allowed_voltage_limits
tests/flex_opt/test_check_tech_constraints.py::TestCheckTechConstraints::test_voltage_deviation_from_allowed_voltage_limits
tests/flex_opt/test_costs.py::TestCosts::test_costs
tests/flex_opt/test_costs.py::TestCosts::test_line_expansion_costs
tests/flex_opt/test_costs.py::TestCosts::test_transformer_expansion_costs
tests/flex_opt/test_heat_pump_operation.py::TestHeatPumpOperation::test_operating_strategy
tests/flex_opt/test_q_control.py::TestQControl::test_get_q_sign_generator
tests/flex_opt/test_q_control.py::TestQControl::test_get_q_sign_load
tests/flex_opt/test_q_control.py::TestQControl::test_fixed_cosphi
tests/flex_opt/test_q_control.py::TestQControl::test__fixed_cosphi_default_power_factor
tests/flex_opt/test_q_control.py::TestQControl::test__fixed_cosphi_default_reactive_power_sign
tests/flex_opt/test_reinforce_grid.py::TestReinforceGrid::test_reinforce_grid
tests/flex_opt/test_reinforce_grid.py::TestReinforceGrid::test_run_separate_lv_grids
tests/flex_opt/test_reinforce_measures.py::TestReinforceMeasures::test_reinforce_mv_lv_station_overloading
tests/flex_opt/test_reinforce_measures.py::TestReinforceMeasures::test_reinforce_hv_mv_station_overloading
tests/flex_opt/test_reinforce_measures.py::TestReinforceMeasures::test_reinforce_mv_lv_station_voltage_issues
tests/flex_opt/test_reinforce_measures.py::TestReinforceMeasures::test_reinforce_lines_voltage_issues
tests/flex_opt/test_reinforce_measures.py::TestReinforceMeasures::test_reinforce_lines_overloading
tests/flex_opt/test_reinforce_measures.py::TestReinforceMeasures::test_separate_lv_grid
tests/network/test_components.py::TestComponents::test_load_class
tests/network/test_components.py::TestComponents::test_generator_class
tests/network/test_components.py::TestComponents::test_storage_class
tests/network/test_components.py::TestComponents::test_switch_class
tests/network/test_dsm.py::TestDSM::test_reduce_memory
tests/network/test_dsm.py::TestDSM::test_to_csv
tests/network/test_dsm.py::TestDSM::test_from_csv
tests/network/test_dsm.py::TestDSM::test_check_integrity
tests/network/test_grids.py::TestGrids::test_mv_grid
tests/network/test_grids.py::TestGrids::test_lv_grid
tests/network/test_grids.py::TestGrids::test_assign_length_to_grid_station
tests/network/test_grids.py::TestGrids::test_assign_grid_feeder
tests/network/test_grids.py::TestGrids::test_get_feeder_stats
tests/network/test_overlying_grid.py::TestOverlyingGrid::test_reduce_memory
tests/network/test_overlying_grid.py::TestOverlyingGrid::test_to_csv
tests/network/test_overlying_grid.py::TestOverlyingGrid::test_from_csv
tests/network/test_overlying_grid.py::TestOverlyingGrid::test_resample
tests/network/test_overlying_grid.py::TestOverlyingGridFunc::test_distribute_overlying_grid_timeseries
tests/network/test_results.py::TestResults::test_to_csv
tests/network/test_results.py::TestResults::test_from_csv
tests/network/test_topology.py::TestTopology::test_grids
tests/network/test_topology.py::TestTopology::test_lv_grids
tests/network/test_topology.py::TestTopology::test__lv_grid_ids
tests/network/test_topology.py::TestTopology::test__grids_repr
tests/network/test_topology.py::TestTopology::test_get_lv_grid
tests/network/test_topology.py::TestTopology::test_rings
tests/network/test_topology.py::TestTopology::test_get_connected_lines_from_bus
tests/network/test_topology.py::TestTopology::test_get_connected_components_from_bus
tests/network/test_topology.py::TestTopology::test_get_neighbours
tests/network/test_topology.py::TestTopology::test_add_load
tests/network/test_topology.py::TestTopology::test_add_generator
tests/network/test_topology.py::TestTopology::test_add_storage_unit
tests/network/test_topology.py::TestTopology::test_add_line
tests/network/test_topology.py::TestTopology::test_add_bus
tests/network/test_topology.py::TestTopology::test_check_bus_for_removal
tests/network/test_topology.py::TestTopology::test_check_line_for_removal
tests/network/test_topology.py::TestTopology::test_remove_load
tests/network/test_topology.py::TestTopology::test_remove_generator
tests/network/test_topology.py::TestTopology::test_remove_storage_unit
tests/network/test_topology.py::TestTopology::test_remove_line
tests/network/test_topology.py::TestTopology::test_remove_bus
tests/network/test_topology.py::TestTopology::test_update_number_of_parallel_lines
tests/network/test_topology.py::TestTopology::test_change_line_type
tests/network/test_topology.py::TestTopology::test_sort_buses
tests/network/test_topology.py::TestTopology::test_to_csv
tests/network/test_topology.py::TestTopology::test_assign_feeders
tests/network/test_topology.py::TestTopology::test_aggregate_lv_grid_at_station
tests/network/test_topology.py::TestTopologyWithEdisgoObject::test_to_geopandas
tests/network/test_topology.py::TestTopologyWithEdisgoObject::test_from_csv
tests/network/test_topology.py::TestTopologyWithEdisgoObject::test_connect_to_mv
tests/network/test_topology.py::TestTopologyWithEdisgoObject::test_connect_to_lv
tests/network/test_topology.py::TestTopologyWithEdisgoObject::test_check_integrity
tests/network/test_topology.py::TestTopologyWithEdisgoObject::test_find_meshes
tests/tools/test_geopandas_helper.py::TestGeopandasHelper::test_to_geopandas
tests/tools/test_logger.py::TestClass::test_setup_logger
tests/tools/test_logger.py::TestClass::test_setup_logger_2
tests/tools/test_pseudo_coordinates.py::TestPseudoCoordinates::test_make_pseudo_coordinates
tests/tools/test_tools.py::TestTools::test_calculate_line_reactance
tests/tools/test_tools.py::TestTools::test_calculate_voltage_diff_pu_per_line
tests/tools/test_tools.py::TestTools::test_calculate_voltage_diff_pu_per_line_from_type
tests/tools/test_tools.py::TestTools::test_calculate_line_resistance
tests/tools/test_tools.py::TestTools::test_calculate_line_susceptance
tests/tools/test_tools.py::TestTools::test_calculate_apparent_power
tests/tools/test_tools.py::TestTools::test_drop_duplicated_indices
tests/tools/test_tools.py::TestTools::test_drop_duplicated_columns
tests/tools/test_tools.py::TestTools::test_select_cable
tests/tools/test_tools.py::TestTools::test_get_downstream_buses
tests/tools/test_tools.py::TestTools::test_get_path_length_to_station
tests/tools/test_tools.py::TestTools::test_assign_voltage_level_to_component
tests/tools/test_tools.py::TestTools::test_determine_grid_integration_voltage_level
tests/tools/test_tools.py::TestTools::test_determine_bus_voltage_level
# tests/tools/test_tools.py::TestTools::test_get_weather_cells_intersecting_with_grid_district
tests/tools/test_tools.py::TestTools::test_add_line_susceptance
tests/tools/test_tools.py::TestTools::test_reduce_memory_usage
Loading
Loading