Skip to content

Commit c4a1a22

Browse files
fix: increase lint timeout and cache mypy in CI
1 parent 84229b9 commit c4a1a22

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
lint:
19-
timeout-minutes: 10
19+
timeout-minutes: 30
2020
name: lint
2121
runs-on: ubuntu-latest
2222
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
@@ -31,6 +31,13 @@ jobs:
3131
- name: Install dependencies
3232
run: uv sync --all-extras
3333

34+
- name: Cache mypy
35+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
36+
with:
37+
path: .mypy_cache
38+
key: mypy-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
39+
restore-keys: mypy-${{ runner.os }}-
40+
3441
- name: Run lints
3542
run: ./scripts/lint
3643
env:

0 commit comments

Comments
 (0)