diff --git a/BharatFinTrack/core.py b/BharatFinTrack/core.py index d3a6415..9ad4aa9 100644 --- a/BharatFinTrack/core.py +++ b/BharatFinTrack/core.py @@ -233,3 +233,17 @@ def sip_growth( df['Multiple (X)'] = df['Value'] / df['Invest'] return df + + def _github_action( + self, + integer: int + ) -> str: + + ''' + A simple function that converts an integer to a string, + which can trigger a GitHub action due to the modification of a '.py' file. + ''' + + output = str(integer) + + return output diff --git a/tests/test_bharatfintrack.py b/tests/test_bharatfintrack.py index 27a201b..3ebe267 100644 --- a/tests/test_bharatfintrack.py +++ b/tests/test_bharatfintrack.py @@ -675,3 +675,12 @@ def test_error_sip_growth( years=20 ) assert exc_info.value.args[0] == "Select a valid frequency from ['yearly', 'quarterly', 'monthly', 'weekly']" + + +def test_github_action( + core +): + + assert core._github_action( + integer=1 + ) == '1'