Skip to content

Commit

Permalink
Fix: Make venv activation cross-platform compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and nedtwigg committed Dec 11, 2024
1 parent d6701cc commit 7957532
Showing 1 changed file with 36 additions and 11 deletions.
47 changes: 36 additions & 11 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,60 @@ jobs:
shell: bash
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: selfie-lib - install dependencies
run: uv pip install -r requirements.txt -r dev-requirements.txt
run: |
uv venv
source .venv/bin/activate || . .venv/Scripts/activate
uv pip install -r requirements.txt -r dev-requirements.txt
working-directory: python/selfie-lib
- name: selfie-lib - pytest
run: python -m pytest -vv
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m pytest -vv
working-directory: python/selfie-lib
- name: selfie-lib - pyright
run: python -m pyright
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m pyright
working-directory: python/selfie-lib
- name: selfie-lib - ruff
run: python -m ruff format --check && python -m ruff check
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m ruff format --check && python -m ruff check
working-directory: python/selfie-lib
- name: pytest-selfie - install dependencies
run: uv pip install -r requirements.txt -r dev-requirements.txt
run: |
uv venv
source .venv/bin/activate || . .venv/Scripts/activate
uv pip install -r requirements.txt -r dev-requirements.txt
working-directory: python/pytest-selfie
- name: pytest-selfie - pyright
run: python -m pyright
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m pyright
working-directory: python/pytest-selfie
- name: pytest-selfie - ruff
run: python -m ruff format --check && python -m ruff check
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m ruff format --check && python -m ruff check
working-directory: python/pytest-selfie
- name: example-pytest-selfie - install dependencies
run: uv pip install -r requirements.txt -r dev-requirements.txt
run: |
uv venv
source .venv/bin/activate || . .venv/Scripts/activate
uv pip install -r requirements.txt -r dev-requirements.txt
working-directory: python/example-pytest-selfie
- name: example-pytest-selfie - pytest
run: python -m pytest -vv
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m pytest -vv
working-directory: python/example-pytest-selfie
- name: example-pytest-selfie - pyright
run: python -m pyright
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m pyright
working-directory: python/example-pytest-selfie
- name: example-pytest-selfie - ruff
run: python -m ruff format --check && python -m ruff check
run: |
source .venv/bin/activate || . .venv/Scripts/activate
python -m ruff format --check && python -m ruff check
working-directory: python/example-pytest-selfie

0 comments on commit 7957532

Please sign in to comment.