Skip to content

Commit

Permalink
feat(ci/cd): build and deploy steps in Makefile (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmagren authored Sep 23, 2023
1 parent 90f03cd commit f30cfeb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,25 @@ clear-pycache:

.PHONY: pip-install
pip-install:
python -m pip install -r requirements.txt
python3 -m pip install -r requirements.txt

.PHONY: unittest
unittest:
python -m unittest
python3 -m unittest

.PHONY: build
build:
python3 -m pip install pip --upgrade
python3 -m pip install build --upgrade
python3 -m build

.PHONY: deploy
deploy:
python3 -m pip install twine --upgrade
python3 -m twine upload --repository pypi dist/*

.PHONY: clean-unittest
clean-unittest: clear-pycache unittest

.PHONY: build-and-deploy
build-and-deploy: build deploy

0 comments on commit f30cfeb

Please sign in to comment.