From 34817d831638dfe912af13a0d2ec67c3e4a3b02c Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 08:54:30 +0000 Subject: [PATCH] Fix: Use bash shell consistently in CI workflow Co-Authored-By: ned.twigg@diffplug.com --- .github/workflows/python-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index e394791f..5ea5ee42 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -29,59 +29,70 @@ jobs: shell: bash run: echo "$HOME/.local/bin" >> $GITHUB_PATH - name: selfie-lib - install dependencies + shell: bash 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 + shell: bash run: | source .venv/bin/activate || . .venv/Scripts/activate python -m pytest -vv working-directory: python/selfie-lib - name: selfie-lib - pyright + shell: bash run: | source .venv/bin/activate || . .venv/Scripts/activate python -m pyright working-directory: python/selfie-lib - name: selfie-lib - ruff + shell: bash 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 + shell: bash 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 + shell: bash run: | source .venv/bin/activate || . .venv/Scripts/activate python -m pyright working-directory: python/pytest-selfie - name: pytest-selfie - ruff + shell: bash 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 + shell: bash 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 + shell: bash run: | source .venv/bin/activate || . .venv/Scripts/activate python -m pytest -vv working-directory: python/example-pytest-selfie - name: example-pytest-selfie - pyright + shell: bash run: | source .venv/bin/activate || . .venv/Scripts/activate python -m pyright working-directory: python/example-pytest-selfie - name: example-pytest-selfie - ruff + shell: bash run: | source .venv/bin/activate || . .venv/Scripts/activate python -m ruff format --check && python -m ruff check