-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (32 loc) · 949 Bytes
/
lint.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
---
name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Run at 1:00 every day
- cron: 0 1 * * *
workflow_dispatch: {}
jobs:
build:
strategy:
matrix:
python-version: ['3.12']
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Lint
run: |
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose
uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose
env:
UV_PYTHON: ${{ matrix.python-version }}
- uses: pre-commit-ci/lite-action@v1.1.0
if: always()