-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from VikramsDataScience/churn-propensity-model
Written CI workflow to execute unit tests
- Loading branch information
Showing
10 changed files
with
11,325 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
# Trigger workflow when a PR is created to push to the 'dev' branch | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
# Only trigger workflow when there are changes to the following folders | ||
paths: | ||
- ECommerce_Churn_Propensity_Model/** | ||
|
||
jobs: | ||
churn_propensity_project: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
python: [3.11.5] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 # Clone the repo (Info: https://github.com/actions/checkout) | ||
|
||
- name: Set up Python path | ||
run: echo "PYTHONPATH=${{ github.workspace }}/ECommerce_Churn_Propensity_Model/src" >> $GITHUB_ENV | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 # Info: https://github.com/actions/setup-python | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install python dependencies # Based on requirements.txt | ||
run: | | ||
pip install -r ECommerce_Churn_Propensity_Model/requirements.txt | ||
- name: Run unit tests # python -m unittest discover -s ECommerce_Churn_Propensity_Model/tests -p "*.py" | ||
run: | | ||
python -m ECommerce_Churn_Propensity_Model.tests.tests | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
__pycache__/ | ||
Training_Logs/ | ||
|
||
# Flask stuff | ||
ECommerce_Churn_Propensity_Model/src/static | ||
ECommerce_Churn_Propensity_Model/src/templates |
Binary file not shown.
5,631 changes: 5,631 additions & 0 deletions
5,631
ECommerce_Churn_Propensity_Model/data/ECommerce_Dataset_IMPUTED.csv
Large diffs are not rendered by default.
Oops, something went wrong.
5,631 changes: 5,631 additions & 0 deletions
5,631
ECommerce_Churn_Propensity_Model/data/PreProcessed_ECommerce_Dataset.csv
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Flask==2.2.2 | ||
matplotlib==3.7.2 | ||
MissForest==2.5.5 | ||
numpy==1.24.3 | ||
pandas==2.0.3 | ||
phik==0.12.4 | ||
PyYAML==6.0.2 | ||
scikit_learn==1.3.0 | ||
scipy==1.11.3 | ||
xgboost==2.1.1 | ||
ydata_profiling==4.8.3 |
Binary file modified
BIN
+109 Bytes
(110%)
ECommerce_Churn_Propensity_Model/src/__pycache__/config.cpython-311.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
2 changes: 1 addition & 1 deletion
2
ECommerce_Churn_Propensity_Model/tests.py → ...rce_Churn_Propensity_Model/tests/tests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters