-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.19 KB
/
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
name: Lint
on:
pull_request:
types: [synchronize, opened, edited]
push:
branches: [main]
jobs:
skip:
name: Skip Duplicate Actions
uses: ixm-one/common/.github/workflows/actions.skip.yml@main
actions:
name: Lint GitHub Action Workflows
uses: ixm-one/common/.github/workflows/actions.lint.yml@main
needs: skip
if: needs.skip.outputs.should-skip != 'true'
spelling:
name: Lint Spelling
uses: ixm-one/common/.github/workflows/spellcheck.yml@main
needs: skip
if: needs.skip.outputs.should-skip != 'true'
python:
name: Lint Python
runs-on: ubuntu-latest
needs: skip
if: needs.skip.outputs.should-skip != 'true'
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: '3.12'
cache: poetry
- name: Install Tools
run: poetry install --with=dev
- run: poetry run ruff format --check
- run: poetry run ruff check
- run: poetry run pyright src tests