Skip to content

Commit

Permalink
Mod linter to use own venv. #44
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoh1r committed May 2, 2021
1 parent 42d6562 commit 79b6a32
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/actions/lint-it/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 79b6a32

Please sign in to comment.