From 91c8e96301107e9224b32a70b7a3da859a6fb9f9 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Mon, 17 Jul 2023 12:13:33 -0700 Subject: [PATCH] fix --- .github/actions/setup-venv/action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/actions/setup-venv/action.yml b/.github/actions/setup-venv/action.yml index cfe4301..fff84a8 100644 --- a/.github/actions/setup-venv/action.yml +++ b/.github/actions/setup-venv/action.yml @@ -41,6 +41,17 @@ runs: run: | # Set up virtual environment without cache hit. test -d .venv || virtualenv -p $(which python) --copies --reset-app-data .venv + pip install '${{ inputs.packages }}' -e .[dev] + + - if: steps.virtualenv-cache.outputs.cache-hit != 'true' && inputs.packages == '' + shell: bash + run: | + . .venv/bin/activate + pip install -e .[dev] + + - if: steps.virtualenv-cache.outputs.cache-hit != 'true' && inputs.packages != '' + shell: bash + run: | . .venv/bin/activate pip install '${{ inputs.packages }}' -e .[dev]