Skip to content

Conversation

@stellaprins
Copy link
Collaborator

@stellaprins stellaprins commented Jul 30, 2025

What does this PR do?
Resolves #23 by running the regression tests in the GitHub Actions workflow.

Generalises runUnitTests functions for reuse with regression tests.

  • runUnitTests_show_results ->show_test_results
  • runUnitTests_create_artifact ->save_artifact

Runs regression and unit tests in the same workflow to create a clear overview

  • unit_tests.yml -> run_tests.yml

See the new CI output here.

Linked issues
#9 #23

Notes
Adding both the unit and regression tests to the same run_tests.yml makes the yml file a little bit more unwieldy but results in a much nicer CI output compared to seperating them. I tried to avoid some of the repetition in the yml file with the use of anchors but decided the code was clearer as it was without anchors.

For testing the workflow
@stellaprins stellaprins requested a review from bencox July 30, 2025 12:39
Copy link
Collaborator

@bencox bencox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very useful, thank you.

I realised that when you open the CI output (if it has failed) it directs you to the end of the output, so it makes more sense to put this information at the end after all
@stellaprins
Copy link
Collaborator Author

Thanks @bencox! I made one last tweak. I realised the CI output opens at the bottom when it fails, so it actually makes more sense to put the most important info (N failed / passed & failed tests) at the end. I’ll merge once I’ve confirmed the CI output looks right.

@stellaprins stellaprins self-assigned this Jul 30, 2025
@stellaprins stellaprins marked this pull request as ready for review July 31, 2025 06:16
@stellaprins stellaprins merged commit d33d7f3 into ucl-bug:main Jul 31, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: CI for regression tests

2 participants