-
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 branch 'main' of https://github.com/kachiann/project-mlops
- Loading branch information
Showing
1 changed file
with
0 additions
and
45 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 |
---|---|---|
@@ -1,45 +0,0 @@ | ||
name: Continuous Deployment | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 # Corrected indentation here | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies from requirements.txt | ||
run: | | ||
if [ -f requirements.txt ]; then | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
fi | ||
- name: Install pipenv and dependencies | ||
run: | | ||
python -m pip install --upgrade pip pipenv | ||
if [ -f Pipfile ]; then | ||
pipenv install --dev --skip-lock | ||
fi | ||
- name: Run Unit tests | ||
run: | | ||
if [ -f Pipfile ]; then | ||
pipenv run pytest | ||
fi | ||
working-directory: tests/unit-tests | ||
|
||
- name: Lint | ||
run: | | ||
if [ -f Pipfile ]; then | ||
pipenv run pylint --recursive=y src | ||
fi | ||
working-directory: . | ||