From 79b6a326009e80189b0642e8b5282dde8eb22e46 Mon Sep 17 00:00:00 2001 From: Tomohiro NAKAMURA Date: Mon, 3 May 2021 07:50:43 +0900 Subject: [PATCH] Mod linter to use own venv. #44 --- .github/actions/lint-it/action.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/actions/lint-it/action.yml b/.github/actions/lint-it/action.yml index f3f50aa..fb4c538 100644 --- a/.github/actions/lint-it/action.yml +++ b/.github/actions/lint-it/action.yml @@ -6,15 +6,17 @@ runs: steps: - name: Create venv. run: | - python3 -m venv --clear venv + pushd $HOME + python3 -m venv --clear .venv-linter + popd shell: bash - name: Install dependencies run: | - ./venv/bin/python3 -m pip install -U setuptools pip - ./venv/bin/python3 -m pip install -e .[dev] + "$HOME/.venv-linter/bin/python" -m pip install -U setuptools pip + "$HOME/.venv-linter/bin/python" -m pip install -e .[dev] shell: bash - name: Test with pytest run: | - ./venv/bin/python3 -m py.test -m "linter" --lint-code + "$HOME/.venv-linter/bin/python" -m py.test -m "linter" --lint-code shell: bash