generated from nogibjj/Leonard_Eshun_Mini_Project_One
-
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.
- Loading branch information
1 parent
48cc498
commit 2342d07
Showing
7 changed files
with
42 additions
and
18,045 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
19 changes: 7 additions & 12 deletions
19
.github/workflows/workflow.yml → .github/workflows/cicd.yml
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,28 +1,23 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: ["main"] | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: ["main"] | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v3 | ||
- name: install packages | ||
run: make install | ||
- name: format | ||
run: make format | ||
- name: lint | ||
run: make lint | ||
- name: test | ||
run: make test | ||
- name: extract | ||
run: make extract | ||
- name: transfer and load | ||
run: make transform_and_load | ||
- name: query | ||
run: make query | ||
- name: format | ||
run: make format | ||
- name: deploy | ||
run: make deploy |
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,25 @@ | ||
install: | ||
pip install --upgrade pip &&\ | ||
pip install -r requirements.txt | ||
|
||
test: | ||
python -m pytest -vv --cov=main --cov=mylib test_*.py | ||
|
||
format: | ||
black *.py | ||
|
||
lint: | ||
#disable comment to test speed | ||
#pylint --disable=R,C --ignore-patterns=test_.*?py *.py mylib/*.py | ||
#ruff linting is 10-100X faster than pylint | ||
ruff check *.py mylib/*.py | ||
|
||
container-lint: | ||
docker run --rm -i hadolint/hadolint < Dockerfile | ||
|
||
refactor: format lint | ||
|
||
deploy: | ||
#deploy goes here | ||
|
||
all: install lint test format deploy |
This file was deleted.
Oops, something went wrong.
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
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,4 +1,5 @@ | ||
#!/usr/bin/env bash | ||
source /home/codespace/venv/bin/activate | ||
#append it to bash so every shell launches with it | ||
echo 'source /home/codespace/venv/bin/activate' >> ~/.bashrc | ||
echo 'source /home/codespace/venv/bin/activate' >> ~/.bashrc | ||
make install-tensorflow |