From ba5a05cd0e9ff42371a762b87c0ebcaa6d8af68a Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 16:27:28 -0800 Subject: [PATCH 01/11] add windows with python3.12 --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65fed028..b8f52821 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,14 @@ jobs: strategy: fail-fast: false matrix: + os: [ubuntu-latest, windows-latest] python-version: ['3.12', '3.13', '3.14'] task: [check, test, format] + exclude: + - os: windows-latest + python-version: '3.13' + - os: windows-latest + python-version: '3.14' name: ${{ matrix.task }} (py ${{ matrix.python-version }}) steps: From 01057a580ad9c9c3441fcfc1dfbbd6503d97e527 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 16:31:52 -0800 Subject: [PATCH 02/11] change test --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8f52821..b35e27dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,8 @@ jobs: python-version: '3.13' - os: windows-latest python-version: '3.14' - name: ${{ matrix.task }} (py ${{ matrix.python-version }}) + + name: ${{ matrix.task }} (py ${{ matrix.python-version }}) ${{ matrix.os }} steps: - uses: actions/checkout@v4 From 350e111829c49cad09242efa1bbe03330247c1b2 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 16:34:56 -0800 Subject: [PATCH 03/11] change runs on. --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b35e27dd..11b54703 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: [push, pull_request] jobs: ci: - runs-on: ubuntu-latest strategy: fail-fast: false matrix: @@ -16,8 +15,8 @@ jobs: python-version: '3.13' - os: windows-latest python-version: '3.14' - - name: ${{ matrix.task }} (py ${{ matrix.python-version }}) ${{ matrix.os }} + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} ${{ matrix.task }} (py ${{ matrix.python-version }}) steps: - uses: actions/checkout@v4 From cb0dcd38fc9de59512511908ada9fec3d41cd8ab Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 16:38:21 -0800 Subject: [PATCH 04/11] add action to install uv --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11b54703..c8b8568b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install uv - run: | - set -euxo pipefail - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@v7 - name: Select command run: | From d003d2f167b81cdfe04d0eab62def45be10bc8ca Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 16:43:02 -0800 Subject: [PATCH 05/11] fix windows commands --- .github/workflows/ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8b8568b..e867877c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,15 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 - - name: Select command + + - name: Install make (Windows) + if: runner.os == 'Windows' + run: choco install make + shell: pwsh + + # Linux/macOS version of command selection + - name: Select command (Linux/macOS) + if: runner.os != 'Windows' run: | case "${{ matrix.task }}" in check) echo "CMD=make check" >> $GITHUB_ENV ;; @@ -37,5 +45,14 @@ jobs: format) echo "CMD=make format FLAGS=--check" >> $GITHUB_ENV ;; esac + # Windows version of command selection + - name: Select command (Windows) + if: runner.os == 'Windows' + run: | + if ("${{ matrix.task }}" -eq "check") { echo "CMD=make check" >> $env:GITHUB_ENV } + if ("${{ matrix.task }}" -eq "test") { echo "CMD=make test" >> $env:GITHUB_ENV } + if ("${{ matrix.task }}" -eq "format") { echo "CMD=make format FLAGS=--check" >> $env:GITHUB_ENV } + shell: pwsh + - name: Run run: $CMD From 0ac4d63d06a43fc635dbd9d81ca53275e0e5d8a0 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 16:48:44 -0800 Subject: [PATCH 06/11] fix windows commands --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e867877c..22a74dc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,4 +55,14 @@ jobs: shell: pwsh - name: Run - run: $CMD + run: | + echo "Running: $env:CMD" + $env:CMD + shell: pwsh + if: runner.os == 'Windows' + + - name: Run + run: | + echo "Running: $CMD" + $CMD + if: runner.os != 'Windows' From 12f83289d8800b2b589bed866336f94ea1625d0d Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 17:28:05 -0800 Subject: [PATCH 07/11] use uv --- .github/workflows/ci.yml | 43 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22a74dc9..f6690b30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,39 +30,12 @@ jobs: uses: astral-sh/setup-uv@v7 - - name: Install make (Windows) - if: runner.os == 'Windows' - run: choco install make - shell: pwsh - - # Linux/macOS version of command selection - - name: Select command (Linux/macOS) - if: runner.os != 'Windows' - run: | - case "${{ matrix.task }}" in - check) echo "CMD=make check" >> $GITHUB_ENV ;; - test) echo "CMD=make test" >> $GITHUB_ENV ;; - format) echo "CMD=make format FLAGS=--check" >> $GITHUB_ENV ;; - esac - - # Windows version of command selection - - name: Select command (Windows) - if: runner.os == 'Windows' - run: | - if ("${{ matrix.task }}" -eq "check") { echo "CMD=make check" >> $env:GITHUB_ENV } - if ("${{ matrix.task }}" -eq "test") { echo "CMD=make test" >> $env:GITHUB_ENV } - if ("${{ matrix.task }}" -eq "format") { echo "CMD=make format FLAGS=--check" >> $env:GITHUB_ENV } - shell: pwsh - - - name: Run - run: | - echo "Running: $env:CMD" - $env:CMD - shell: pwsh - if: runner.os == 'Windows' - - - name: Run + - name: Run commands run: | - echo "Running: $CMD" - $CMD - if: runner.os != 'Windows' + if [ "${{ matrix.task }}" = "check" ]; then + uv run pyright typeagent test tools gmail + elif [ "${{ matrix.task }}" = "test" ]; then + uv run pytest + elif [ "${{ matrix.task }}" = "format" ]; then + uv run black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo --check + fi \ No newline at end of file From 7140de21cdd3f126469d0793ee9327410dea54f6 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 17:37:23 -0800 Subject: [PATCH 08/11] use uv --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6690b30..6d82c427 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,7 @@ jobs: - name: Run commands run: | + uv sync --extra dev if [ "${{ matrix.task }}" = "check" ]; then uv run pyright typeagent test tools gmail elif [ "${{ matrix.task }}" = "test" ]; then From 01a9ed7a9e33066406cbcc08967c4cb63390f6a9 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 17:40:38 -0800 Subject: [PATCH 09/11] use uv --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d82c427..7400d8b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,9 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 - - name: Run commands + shell: bash + if: runner.os != 'Windows' run: | uv sync --extra dev if [ "${{ matrix.task }}" = "check" ]; then @@ -39,4 +40,19 @@ jobs: uv run pytest elif [ "${{ matrix.task }}" = "format" ]; then uv run black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo --check - fi \ No newline at end of file + fi + + - name: Run commands (Windows) + shell: pwsh + if: runner.os == 'Windows' + run: | + uv sync --extra dev + if ("${{ matrix.task }}" -eq "check") { + uv run pyright typeagent test tools gmail + } + elseif ("${{ matrix.task }}" -eq "test") { + uv run pytest + } + elseif ("${{ matrix.task }}" -eq "format") { + uv run black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo --check + } \ No newline at end of file From 3eb7386d5b3b5ef6eea94bf0bfbfd044f753fb55 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 17:55:07 -0800 Subject: [PATCH 10/11] use uv --- .github/workflows/ci.yml | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7400d8b8..1bba4dc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,30 +29,20 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 - - name: Run commands + - name: Run Check shell: bash - if: runner.os != 'Windows' + if: matrix.task == 'check' run: | - uv sync --extra dev - if [ "${{ matrix.task }}" = "check" ]; then uv run pyright typeagent test tools gmail - elif [ "${{ matrix.task }}" = "test" ]; then - uv run pytest - elif [ "${{ matrix.task }}" = "format" ]; then + + - name: Run Format + shell: bash + if: matrix.task == 'format' + run: | uv run black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo --check - fi - - name: Run commands (Windows) - shell: pwsh - if: runner.os == 'Windows' + - name: Run Test + shell: bash + if: matrix.task == 'test' run: | - uv sync --extra dev - if ("${{ matrix.task }}" -eq "check") { - uv run pyright typeagent test tools gmail - } - elseif ("${{ matrix.task }}" -eq "test") { uv run pytest - } - elseif ("${{ matrix.task }}" -eq "format") { - uv run black -tpy312 -tpy313 -tpy314 typeagent test tools gmail demo --check - } \ No newline at end of file From 1436ad72dab8c78c53962a3b482620ff17e2f970 Mon Sep 17 00:00:00 2001 From: wirthual Date: Sun, 16 Nov 2025 17:58:48 -0800 Subject: [PATCH 11/11] use uv --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bba4dc8..a379fce9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,11 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 + - name: Install Dependencies + shell: bash + run: | + uv sync --extra dev + - name: Run Check shell: bash if: matrix.task == 'check'