Skip to content

Commit

Permalink
add training model step
Browse files Browse the repository at this point in the history
  • Loading branch information
renansantosmendes committed Nov 9, 2022
1 parent 91131a0 commit 6b56eb0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ jobs:
- name: Test
run: |
python -m pytest test.py
ct_pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Training Model
run: |
python train_model.py --base_data_url ${{secrets.BASE_DATA_URL}} --data_file_name ${{secrets.DATA_FILE_NAME}} --tracking_uri ${{secrets.MLFLOW_TRACKING_URI}} --tracking_username ${{secrets.MLFLOW_TRACKING_USERNAME}} --tracking_password ${{secrets.MLFLOW_TRACKING_PASSWORD}} --registry_model_name ${{secrets.MLFLOW_REGISTRY_MODEL_NAME}} --n_estimators ${{secrets.N_ESTIMATORS}}

0 comments on commit 6b56eb0

Please sign in to comment.