Skip to content

Commit

Permalink
testing in my fork
Browse files Browse the repository at this point in the history
  • Loading branch information
ratheesh-aot committed May 9, 2024
1 parent 334c717 commit d75c167
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/met-web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
setup-job:
runs-on: ubuntu-20.04

if: github.repository == 'bcgov/met-public'
if: github.repository == 'ratheesh-aot/met-public'

steps:
- uses: actions/checkout@v2
Expand Down
18 changes: 9 additions & 9 deletions met-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ install: clean ## Install python virtrual environment
pip install -Ur requirements.txt

install-dev: ## Install local application
. venv/bin/activate ; \
. venv/Scripts/activate ; \
pip install -Ur requirements/dev.txt; \
pip install -e .

Expand All @@ -68,18 +68,18 @@ install-dev: ## Install local application
ci: lint flake8 test ## CI flow

pylint: ## Linting with pylint
. venv/bin/activate && pylint --rcfile=setup.cfg src/$(PROJECT_NAME)
. venv/Scripts/activate && pylint --rcfile=setup.cfg src/$(PROJECT_NAME)

flake8: ## Linting with flake8
. venv/bin/activate && flake8 src/$(PROJECT_NAME) tests
. venv/Scripts/activate && flake8 src/$(PROJECT_NAME) tests

lintfix: ## Linting fix
. venv/bin/activate && autopep8 -i -a src/**/*.py tests/**/*.py
. venv/Scripts/activate && autopep8 -i -a src/**/*.py tests/**/*.py

lint: pylint flake8 ## run all lint type scripts

test: ## Unit testing
. venv/bin/activate && pytest
. venv/Scripts/activate && pytest

mac-cov: local-test ## Run the coverage report and display in a browser window (mac)
open -a "Google Chrome" htmlcov/index.html
Expand Down Expand Up @@ -139,16 +139,16 @@ tag: push ## tag image
# COMMANDS - Local #
#################################################################################
run: db ## Run the project in local
. venv/bin/activate && python -m flask run -p 5000
. venv/Scripts/activate && python -m flask run -p 5000

db: ## Update the local database
. venv/bin/activate && python manage.py db upgrade
. venv/Scripts/activate && python manage.py db upgrade

db-downgrade: ## Update the local database to the previous migration
. venv/bin/activate && python manage.py db downgrade
. venv/Scripts/activate && python manage.py db downgrade

db-migrate: ## Create a new migration
. venv/bin/activate && flask db migrate -m "$(message)"
. venv/Scripts/activate && flask db migrate -m "$(message)"

#################################################################################
# Self Documenting Commands #
Expand Down

0 comments on commit d75c167

Please sign in to comment.