From da70917a20ef5557d66de5430ecf7266c558a455 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:44:35 +0000 Subject: [PATCH 1/4] Initial plan From cd5a641b4ca2c8e21bd28a38a7203b9ffff59bcc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:46:00 +0000 Subject: [PATCH 2/4] Add Copilot development environment setup script Co-authored-by: g3force <779094+g3force@users.noreply.github.com> --- .github/copilot/setup.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .github/copilot/setup.sh diff --git a/.github/copilot/setup.sh b/.github/copilot/setup.sh new file mode 100755 index 0000000..0648986 --- /dev/null +++ b/.github/copilot/setup.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +echo "Setting up Copilot development environment..." + +# Install uv (version matching GitHub Actions) +echo "Installing uv..." +curl -LsSf https://astral.sh/uv/0.10.2/install.sh | sh +export PATH="$HOME/.local/bin:$PATH" + +# Verify uv installation +uv --version + +# Install Python and dependencies +echo "Installing dependencies..." +uv sync --all-packages + +echo "Development environment setup complete!" From b9d040a67ca68eaf5dcefd7ca4ec350216e5341b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:46:48 +0000 Subject: [PATCH 3/4] Improve setup script with better error handling and PATH persistence Co-authored-by: g3force <779094+g3force@users.noreply.github.com> --- .github/copilot/setup.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/copilot/setup.sh b/.github/copilot/setup.sh index 0648986..31a54e3 100755 --- a/.github/copilot/setup.sh +++ b/.github/copilot/setup.sh @@ -6,10 +6,19 @@ echo "Setting up Copilot development environment..." # Install uv (version matching GitHub Actions) echo "Installing uv..." curl -LsSf https://astral.sh/uv/0.10.2/install.sh | sh + +# Source uv environment to make it available in the current shell +if [ -f "$HOME/.local/bin/env" ]; then + . "$HOME/.local/bin/env" +fi export PATH="$HOME/.local/bin:$PATH" # Verify uv installation -uv --version +echo "Verifying uv installation..." +if ! uv --version; then + echo "ERROR: uv installation failed or uv is not in PATH" + exit 1 +fi # Install Python and dependencies echo "Installing dependencies..." From c054903bfc2091c44caf7fa8d9173c605104c7b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:52:38 +0000 Subject: [PATCH 4/4] Replace setup.sh with copilot-setup-steps.yml workflow Co-authored-by: g3force <779094+g3force@users.noreply.github.com> --- .github/copilot/setup.sh | 27 ------------------- .github/workflows/copilot-setup-steps.yml | 33 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 27 deletions(-) delete mode 100755 .github/copilot/setup.sh create mode 100644 .github/workflows/copilot-setup-steps.yml diff --git a/.github/copilot/setup.sh b/.github/copilot/setup.sh deleted file mode 100755 index 31a54e3..0000000 --- a/.github/copilot/setup.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -set -e - -echo "Setting up Copilot development environment..." - -# Install uv (version matching GitHub Actions) -echo "Installing uv..." -curl -LsSf https://astral.sh/uv/0.10.2/install.sh | sh - -# Source uv environment to make it available in the current shell -if [ -f "$HOME/.local/bin/env" ]; then - . "$HOME/.local/bin/env" -fi -export PATH="$HOME/.local/bin:$PATH" - -# Verify uv installation -echo "Verifying uv installation..." -if ! uv --version; then - echo "ERROR: uv installation failed or uv is not in PATH" - exit 1 -fi - -# Install Python and dependencies -echo "Installing dependencies..." -uv sync --all-packages - -echo "Development environment setup complete!" diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..f95c9d6 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,33 @@ +name: Copilot Setup Steps + +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + version: "0.10.2" + enable-cache: true + + - name: Setup Python + uses: actions/setup-python@v6 + with: + python-version-file: "pyproject.toml" + + - name: Install dependencies + run: uv sync --all-packages