diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9332b840..1ba96c0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,10 @@ jobs: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} uv-${{ runner.os }} - name: Install the project - run: uv sync --all-extras --dev + run: | + uv sync --all-extras --dev + echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV + echo "$PWD/.venv/bin" >> $GITHUB_PATH # Following steps cannot run by pre-commit.ci as repo = local - name: Run mypy run: mypy deebot_client/ @@ -67,7 +70,10 @@ jobs: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} uv-${{ runner.os }} - name: Install the project - run: uv sync --all-extras --dev + run: | + uv sync --all-extras --dev + echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV + echo "$PWD/.venv/bin" >> $GITHUB_PATH - name: Run pytest run: uv run pytest tests --cov=./ --cov-report=xml - name: Upload coverage to Codecov