-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 930 Bytes
/
check.yml
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
48
name: check
on:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
check:
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@2e657c127d5b1635d5a8e3fa40e0ac50a5bf6992 # v3.2.2
with:
version: "0.5.0"
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install dependencies
id: install
run: |
uv sync --dev --frozen
- name: lint
run: |
uv run ruff check --output-format github .
- name: check format
run: |
uv run ruff format --check .