-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (38 loc) · 1000 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
42
43
name: lint
on:
push:
workflow_call:
inputs:
working-directory:
required: true
type: string
description: "Folder from which this pipeline executes"
default: "."
workflow_dispatch:
inputs:
working-directory:
required: true
type: string
description: "Folder from which this pipeline executes"
default: "."
env:
UV_VERSION: "0.5.8"
PYTHON_VERSION: "3.10"
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python and uv
uses: "./.github/actions/uv_setup"
with:
python-version: ${{ env.PYTHON_VERSION }}
uv-version: ${{ env.UV_VERSION }}
working-directory: ${{ inputs.working-directory }}
cache-key: lint
- name: Install dependencies and run linting
working-directory: ${{ inputs.working-directory }}
run: |
make dev-install
make lint