diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 825838a..763abdb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest env: PYTHON_ENV: ci - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} FMP_API_KEY: ${{ secrets.FMP_API_KEY }} strategy: matrix: diff --git a/Makefile b/Makefile index d408797..cab2a5a 100644 --- a/Makefile +++ b/Makefile @@ -1,42 +1,61 @@ -.PHONY: lint notebook book tests +.PHONY: help help: @echo ================================================================================ @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' @echo ================================================================================ + +.PHONY: lint lint: ## Lint and fix @poetry run ./dev/lint fix +.PHONY: lint-check lint-check: ## Lint check only @poetry run ./dev/lint + +.PHONY: install-dev install-dev: ## Install development dependencies @./dev/install + +.PHONY: notebook notebook: ## Run Jupyter notebook server @poetry run ./dev/start-jupyter 9095 +.PHONY: book book: ## Build static jupyter {book} poetry run jupyter-book build notebooks --all + +.PHONY: sphinx-config sphinx-config: ## Build sphinx config poetry run jupyter-book config sphinx notebooks + +.PHONY: sphinx sphinx: poetry run sphinx-build notebooks path/to/book/_build/html -b html -publish: ## release to pypi - @poetry publish --build -u lsbardel -p $(PYPI_PASSWORD) +.PHONY: publish +publish: ## Release to pypi + @poetry publish --build -u __token__ -p $(PYPI_TOKEN) + + +.PHONY: publish-book publish-book: ## publish the book to github pages poetry run ghp-import -n -p -f notebooks/_build/html -tests: ## unit tests + +.PHONY: tests +tests: ## Unit tests @./dev/test +.PHONY: outdated outdated: ## Show outdated packages poetry show -o -a