-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (39 loc) · 1.09 KB
/
code-quality.yaml
File metadata and controls
51 lines (39 loc) · 1.09 KB
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
49
50
51
name: Code quality
on:
workflow_dispatch:
workflow_call:
secrets:
TEST_HOST:
required: true
TEST_ENV_ID:
required: true
TEST_TOKEN:
required: true
pull_request:
push:
branches:
- main
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # actions/checkout@v4
- uses: ./.github/actions/setup-python-env
- name: ruff
run: "hatch run dev:ruff format --check"
- name: basedpyright
run: "hatch run dev:basedpyright dbtsl tests"
- name: mypy
run: "hatch run dev:python -m mypy dbtsl"
- name: fetch server schema
run: "hatch run dev:fetch-schema"
- name: show env info
run: "hatch run test:uv pip freeze"
- name: unit tests
run: "hatch run test:unit"
- name: integration tests
run: "hatch run test:integration"
env:
SL_HOST: ${{ secrets.TEST_HOST }}
SL_ENV_ID: ${{ secrets.TEST_ENV_ID }}
SL_TOKEN: ${{ secrets.TEST_TOKEN }}