From 7e4dfcc38b9bbb777c86c80c149e352aa6518e6e Mon Sep 17 00:00:00 2001 From: opencode-agent Date: Thu, 6 Aug 2026 16:02:15 +0000 Subject: [PATCH] ci: reduce python matrix to 3.13 and enable uv/npm caches --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f9aecf..bb9a237 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,8 @@ jobs: with: python-version: "3.12" - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true - run: uv sync --extra dev - run: uv run ruff check src/ tests/ .opencode/scripts/ - run: uv run ruff format --check src/ tests/ .opencode/scripts/ @@ -54,6 +56,8 @@ jobs: with: python-version: "3.12" - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true - run: uv sync --extra dev - run: uv run mypy src/ @@ -65,7 +69,7 @@ jobs: strategy: fail-fast: false matrix: - python: ["3.12", "3.13", "3.14"] + python: ["3.13"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -74,6 +78,10 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '22' + cache: 'npm' + cache-dependency-path: | + .opencode/package-lock.json + .opencode/draw-image/package-lock.json - run: sudo apt-get update && sudo apt-get install -y ripgrep - run: npm ci working-directory: .opencode @@ -82,6 +90,8 @@ jobs: - run: npm test working-directory: .opencode/draw-image - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true - run: uv sync --extra dev --python ${{ matrix.python }} - run: uv run --python ${{ matrix.python }} pytest @@ -96,5 +106,7 @@ jobs: with: python-version: "3.12" - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true - run: uv sync --extra dev - run: uv run xenon --max-absolute B --max-modules A --max-average A src/