77 runs-on : ubuntu-latest
88 name : ruff format
99 steps :
10- - uses : actions/checkout@v5
10+ - name : Checkout code
11+ uses : actions/checkout@v5
1112 - name : Install uv
1213 uses : astral-sh/setup-uv@v7
1314 with :
1415 enable-cache : true
1516 cache-dependency-glob : " uv.lock"
16- - name : Set up Python
17- uses : actions/setup-python@v6
18- with :
19- python-version-file : " pyproject.toml"
2017 - name : Install the project
21- run : uv sync --upgrade
18+ run : uv sync -U
2219 - name : Run ruff format
2320 run : uv run ruff format --diff
2421
2522 ruff_check :
2623 runs-on : ubuntu-latest
2724 name : ruff check
2825 steps :
29- - uses : actions/checkout@v5
26+ - name : Checkout code
27+ uses : actions/checkout@v5
3028 - name : Install uv
3129 uses : astral-sh/setup-uv@v7
3230 with :
3331 enable-cache : true
3432 cache-dependency-glob : " uv.lock"
35- - name : Set up Python
36- uses : actions/setup-python@v6
37- with :
38- python-version-file : " pyproject.toml"
3933 - name : Install the project
40- run : uv sync --upgrade
34+ run : uv sync -U
4135 - name : Run ruff check
4236 run : uv run ruff check --diff
4337
4438 # pyright:
4539 # runs-on: ubuntu-latest
4640 # name: pyright
4741 # steps:
48- # - uses: actions/checkout@v5
42+ # - name: Checkout code
43+ # uses: actions/checkout@v5
4944 # - name: Install uv
5045 # uses: astral-sh/setup-uv@v7
5146 # with:
@@ -56,25 +51,22 @@ jobs:
5651 # with:
5752 # python-version-file: "pyproject.toml"
5853 # - name: Install the project
59- # run: uv sync --upgrade --extra test
54+ # run: uv sync -U --extra test
6055 # - name: Run pyright
6156 # run: uv run pyright
6257
6358 mypy :
6459 runs-on : ubuntu-latest
6560 name : mypy
6661 steps :
67- - uses : actions/checkout@v5
62+ - name : Checkout code
63+ uses : actions/checkout@v5
6864 - name : Install uv
6965 uses : astral-sh/setup-uv@v7
7066 with :
7167 enable-cache : true
7268 cache-dependency-glob : " uv.lock"
73- - name : Set up Python
74- uses : actions/setup-python@v6
75- with :
76- python-version-file : " pyproject.toml"
7769 - name : Install the project
78- run : uv sync --upgrade --extra test
70+ run : uv sync -U --extra test
7971 - name : Run mypy
8072 run : uv run mypy
0 commit comments