ci: add type checking to ci
This commit is contained in:
parent
0b2a911405
commit
62d4996d12
2 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@ jobs:
|
||||||
runs-on: runner-latest
|
runs-on: runner-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: https://github.com/astral-sh/setup-uv@v3
|
||||||
- name: Linting
|
- name: Linting
|
||||||
run: pipx run pre-commit run ruff -a
|
run: pipx run pre-commit run ruff -a
|
||||||
- name: Format
|
- name: Format
|
||||||
|
@ -13,6 +14,11 @@ jobs:
|
||||||
run: pipx run pre-commit run check-yaml -a
|
run: pipx run pre-commit run check-yaml -a
|
||||||
- name: Validate shell scripts
|
- name: Validate shell scripts
|
||||||
run: pipx run pre-commit run shellcheck -a
|
run: pipx run pre-commit run shellcheck -a
|
||||||
|
- name: Check types
|
||||||
|
run: |
|
||||||
|
uv venv
|
||||||
|
uv pip install .
|
||||||
|
pipx run pre-commit run pyright -a
|
||||||
export-trace:
|
export-trace:
|
||||||
runs-on: runner-latest
|
runs-on: runner-latest
|
||||||
needs: [static-analysis]
|
needs: [static-analysis]
|
||||||
|
|
|
@ -3,7 +3,7 @@ name = "blogue"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Basic static site generator that powers my blog."
|
description = "Basic static site generator that powers my blog."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"click>=8.1.7",
|
"click>=8.1.7",
|
||||||
"httpx>=0.27.2",
|
"httpx>=0.27.2",
|
||||||
|
|
Loading…
Reference in a new issue