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 5000f31 commit 7ea089b
Showing 1 changed file with 27 additions and 30 deletions.
57 changes: 27 additions & 30 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ on:
push:
pull_request:
branches:
- main
- main
workflow_dispatch:
repository_dispatch:
types:
- webhook

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

Expand All @@ -34,29 +32,28 @@ jobs:
pytest tests/test_train.py
train_pipeline:
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
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: 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 7ea089b

Please sign in to comment.