ci: use preinstalled tools from custom runner image (drop setup-uv/python/node actions)
This commit is contained in:
parent
7e4dfcc38b
commit
a08385c9dd
1 changed files with 0 additions and 32 deletions
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
|
|
@ -35,12 +35,6 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.12"
|
|
||||||
- uses: astral-sh/setup-uv@v3
|
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
- run: uv sync --extra dev
|
- run: uv sync --extra dev
|
||||||
- run: uv run ruff check src/ tests/ .opencode/scripts/
|
- run: uv run ruff check src/ tests/ .opencode/scripts/
|
||||||
- run: uv run ruff format --check src/ tests/ .opencode/scripts/
|
- run: uv run ruff format --check src/ tests/ .opencode/scripts/
|
||||||
|
|
@ -52,12 +46,6 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.12"
|
|
||||||
- uses: astral-sh/setup-uv@v3
|
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
- run: uv sync --extra dev
|
- run: uv sync --extra dev
|
||||||
- run: uv run mypy src/
|
- run: uv run mypy src/
|
||||||
|
|
||||||
|
|
@ -72,26 +60,12 @@ jobs:
|
||||||
python: ["3.13"]
|
python: ["3.13"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python }}
|
|
||||||
- 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
|
- run: npm ci
|
||||||
working-directory: .opencode
|
working-directory: .opencode
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
working-directory: .opencode/draw-image
|
working-directory: .opencode/draw-image
|
||||||
- run: npm test
|
- run: npm test
|
||||||
working-directory: .opencode/draw-image
|
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 sync --extra dev --python ${{ matrix.python }}
|
||||||
- run: uv run --python ${{ matrix.python }} pytest
|
- run: uv run --python ${{ matrix.python }} pytest
|
||||||
|
|
||||||
|
|
@ -102,11 +76,5 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.12"
|
|
||||||
- uses: astral-sh/setup-uv@v3
|
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
- run: uv sync --extra dev
|
- run: uv sync --extra dev
|
||||||
- run: uv run xenon --max-absolute B --max-modules A --max-average A src/
|
- run: uv run xenon --max-absolute B --max-modules A --max-average A src/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue