Skip to content

Commit

Permalink
Added gen tests to ci pipeline (#62)
Browse files Browse the repository at this point in the history
* apply logic for new topology

* changed max-time to adhere to benajmins manual file

* added gen tests to ci

* removed unneccessary python file

* reseted userinput

* reseted coupling scheme

---------

Co-authored-by: Toddelismyname <[email protected]>
  • Loading branch information
VanLaareN and Toddelismyname authored Jan 19, 2025
1 parent 77b1ff6 commit 322d523
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/port-to-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ jobs:
- name: Run Porting to v3 Tests
run: |
python -m pytest tests/test_porting_to_v3.py -s
python -m pytest tests/test_porting_to_v3.py -s
- name: Run Porting of 8 examples
run: |
python -m pytest tests/generation-tests/test_generation.py -s
2 changes: 1 addition & 1 deletion controller_utils/precice_struct/PS_CouplingScheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ def write_precice_xml_config(self, tag:etree, config, parent): # config: PS_PreC
for q_name in config.coupling_quantities:
q = config.coupling_quantities[q_name]
i = etree.SubElement(post_processing, "data", name=q.instance_name, mesh=q.source_mesh_name)
pass
pass
2 changes: 1 addition & 1 deletion tests/generation-tests/test_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_generate(capsys, example_nr):
sys.path.append(str(root))
from FileGenerator import FileGenerator

# Use example_nr directly without an inner loop
# Use example_nr for 8 examples
topology_file = root / "controller_utils" / "examples" / f"{example_nr}" / "topology.yaml"
output_path = root
fileGenerator = FileGenerator(topology_file, output_path)
Expand Down

0 comments on commit 322d523

Please sign in to comment.