Skip to content

Commit c3a2d5f

Browse files
updates to makefile & ci configuration (#115)
1 parent cee13b6 commit c3a2d5f

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: build
22

3-
on: [ push ]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47

58
jobs:
69
build:

Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1+
PYTHON ?= python3
12

23
all:
3-
python setup.py sdist
4-
python -m doctest ./customerio/__init__.py
4+
$(PYTHON) setup.py sdist
5+
$(PYTHON) -m doctest ./customerio/__init__.py
56

67
install:
7-
python setup.py install
8+
$(PYTHON) setup.py install
89

910
clean:
10-
python setup.py clean
11+
$(PYTHON) setup.py clean
1112
rm -rf MANIFEST build dist
1213

1314
dev: clean all
1415
if ! pip uninstall customerio; then echo "customerio not installed, installing it for the first time" ; fi
1516
pip install dist/*
16-
python -i -c "from customerio import *"
17+
$(PYTHON) -i -c "from customerio import *"
1718

1819
upload:
19-
python setup.py register
20+
$(PYTHON) setup.py register
2021
echo "*** Now upload the binary to PyPi *** (one second)" && sleep 3 && open dist & open "http://pypi.python.org/pypi?%3Aaction=pkg_edit&name=customerio" # python setup.py upload
2122

2223
test:
2324
openssl req -new -newkey rsa:2048 -days 10 -nodes -x509 -subj "/C=CA/ST=Ontario/L=Toronto/O=Test/CN=127.0.0.1" -keyout ./tests/server.pem -out ./tests/server.pem
24-
python -m unittest discover -v
25+
$(PYTHON) -m unittest discover -v

0 commit comments

Comments
 (0)