Skip to content

Commit

Permalink
activate venv at very step in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamex committed Mar 5, 2024
1 parent 7ea0b80 commit fac56f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
uv pip install --upgrade -r requirements-dev.txt
- name: run black
run: python -m black --config pyproject.toml --check --diff .
run: |
source .venv/bin/activate
python -m black --config pyproject.toml --check --diff .
- name: get all Python files
id: list_files
Expand All @@ -43,6 +45,7 @@ jobs:
- name: run Pylint on files
run: |
source .venv/bin/activate
files="${{ steps.list_files.outputs.files }}"
if [ -n "$files" ]; then
pylint --rcfile=.pylintrc $files
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ jobs:
uv pip install --upgrade -r requirements-dev.txt
- name: analysing code with pyright
run: python -m pyright $(git ls-files '*.py' '*.pyi')
run: |
source .venv/bin/activate
python -m pyright $(git ls-files '*.py' '*.pyi')
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ jobs:
- name: run pytest with coverage
run: |
source .venv/bin/activate
IN_CI=true coverage run -m pytest
- name: generate coverage report
run: |
source .venv/bin/activate
coverage xml -i
coverage html -i
Expand Down

0 comments on commit fac56f3

Please sign in to comment.