forked from coinbase/agentkit
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.12 KB
/
format.yml
File metadata and controls
47 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Format
on: [pull_request]
jobs:
format-python:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./python/coinbase-agentkit
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Ensure formatting
run: make format-check
format-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"
cache-dependency-path: ./typescript
- name: Ensure formatting
working-directory: ./typescript
run: |
pnpm install --frozen-lockfile
pnpm run format:check