From 9107693ec76144d0f43476483fb07aa025008a19 Mon Sep 17 00:00:00 2001 From: Stephen Young Date: Tue, 5 May 2026 00:08:07 -0400 Subject: [PATCH 1/2] fix ci --- .github/workflows/main.yml | 5 ++++- Makefile | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2abd4f7..44b14d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: build -on: [ push ] +on: + push: + pull_request: + workflow_dispatch: jobs: build: diff --git a/Makefile b/Makefile index 2f5501c..71c60b5 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,20 @@ +PYTHON ?= python3 all: - python setup.py sdist - python -m doctest ./customerio/__init__.py + $(PYTHON) setup.py sdist + $(PYTHON) -m doctest ./customerio/__init__.py install: - python setup.py install + $(PYTHON) setup.py install clean: - python setup.py clean + $(PYTHON) setup.py clean rm -rf MANIFEST build dist dev: clean all if ! pip uninstall customerio; then echo "customerio not installed, installing it for the first time" ; fi pip install dist/* - python -i -c "from customerio import *" + $(PYTHON) -i -c "from customerio import *" upload: python setup.py register @@ -21,4 +22,4 @@ upload: test: 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 - python -m unittest discover -v + $(PYTHON) -m unittest discover -v From b07e0d19b34d87d8a9ea9a717bf2d2a7c2524ef4 Mon Sep 17 00:00:00 2001 From: Stephen Young Date: Tue, 5 May 2026 10:02:55 -0400 Subject: [PATCH 2/2] whoop --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 71c60b5..500a6d8 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ dev: clean all $(PYTHON) -i -c "from customerio import *" upload: - python setup.py register + $(PYTHON) setup.py register 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 test: