From 2519c58d40c5c5f46cd704c04c1d2ff1b6696992 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Fri, 13 Dec 2024 14:27:12 -0500 Subject: [PATCH] build: add a bin/post_compile for Heroku buildling --- .github/workflows/tests.yml | 4 +++- bin/post_compile | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 bin/post_compile diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 722d3fe8..28c287da 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -127,7 +127,9 @@ jobs: cache: "pip" - name: Install Python dependencies the way Heroku would - run: pip install -r requirements.txt + run: | + pip install -r requirements.txt + bin/post_compile - name: unit test the web API run: python test/test_web_api.py diff --git a/bin/post_compile b/bin/post_compile new file mode 100755 index 00000000..91e478e7 --- /dev/null +++ b/bin/post_compile @@ -0,0 +1,4 @@ +#!/bin/sh + +# Heroku expects to run your app in place, but doesn't actually do this for you +pip install -e .