ci: reduce python matrix to 3.13 and enable uv/npm caches
This commit is contained in:
parent
d16c2434a3
commit
7e4dfcc38b
1 changed files with 13 additions and 1 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue