Add SQL server to workflows
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ab5222a..df72415 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,14 +17,29 @@
steps:
- uses: actions/checkout@v2
+
+ - name: Shutdown Ubuntu MySQL (SUDO)
+ run: sudo service mysql stop # Shutdown the Default MySQL, "sudo" is necessary, please not remove it
+
+ - name: Start MySQL/Mariadb
+ uses: shogo82148/actions-setup-mysql@v1
+ with:
+ mysql-version: '5.7'
+ root-password: 'mysql'
+ auto-start: true
+ run: mysql -uroot -pmysql -h127.0.0.1 -e 'CREATE DATABASE fineract_scorecard;'
+
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
+
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
+
- name: Run Tests
run: |
python manage.py test
+
\ No newline at end of file
diff --git a/statistical_scripts/statistical_scoring.py b/statistical_scripts/statistical_scoring.py
index 9b6fa82..a38b611 100644
--- a/statistical_scripts/statistical_scoring.py
+++ b/statistical_scripts/statistical_scoring.py
@@ -16,6 +16,8 @@
log = logging.getLogger(__name__)
def linear_regression(input_row, data, categorical):
+
+ print(input_row)
data = data.dropna()
data.loc[len(data)] = input_row