Skip to content

Commit

Permalink
chore: Add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
lis-r-barreto committed Jun 23, 2024
1 parent 41a76e8 commit 5000f31
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ on:
push:
pull_request:
branches:
- main
- main
workflow_dispatch:
repository_dispatch:
types:
- webhook

jobs:
test_train:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 0

Expand All @@ -32,23 +34,29 @@ jobs:
pytest tests/test_train.py
train_pipeline:
runs-on: ubuntu-latest
needs: [test_train]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Train Model
run: |
python app/train.py
runs-on: ubuntu-latest
needs: [test_train]
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 0

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Set up MLflow environment variables
env:
MLFLOW_TRACKING_USERNAME: ${{ secrets.MLFLOW_TRACKING_USERNAME }}
MLFLOW_TRACKING_PASSWORD: ${{ secrets.MLFLOW_TRACKING_PASSWORD }}

- name: Train Model
run: |
python app/train.py

0 comments on commit 5000f31

Please sign in to comment.