From 8a1a2df2c1c3ac60c82f3981c8fa605d745425e6 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 18 Feb 2021 23:46:05 -0600 Subject: [PATCH] Fix pipenv failing to import sqlalchemy-json 'sqlalchemy_json' does not import when running pytest through pipenv. Prepending 'python -m' to the pytest command fixes this (although I'm not sure why it even fails to import a global module). Hope this works in the GitHub Actions workflow. --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 4237762..7c16d53 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -30,4 +30,4 @@ jobs: pipenv install --dev - name: Run tests - run: pipenv run pytest + run: pipenv run python -m pytest