forked from dagster-io/community-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1008 Bytes
/
template-quality-check.yml
File metadata and controls
43 lines (33 loc) · 1008 Bytes
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: quality-check
on:
workflow_call:
inputs:
working_directory:
required: true
type: string
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install python
working-directory: ${{ inputs.working_directory }}
run: uv python install 3.12
- name: Sync dependencies
working-directory: ${{ inputs.working_directory }}
run: uv sync --all-extras
- name: Lint
working-directory: ${{ inputs.working_directory }}
run: uv run ruff check
- name: Check formatting
working-directory: ${{ inputs.working_directory }}
run: uv run ruff format --check
- name: Type check
working-directory: ${{ inputs.working_directory }}
run: uv run pyright
- name: Test
working-directory: ${{ inputs.working_directory }}
run: uv run pytest