Skip to content

Merge pull request #27 from heliocastro/dependabot/github_actions/act… #116

Merge pull request #27 from heliocastro/dependabot/github_actions/act…

Merge pull request #27 from heliocastro/dependabot/github_actions/act… #116

# SPDX-FileCopyrightText: 2025 Helio Chissini de Castro <heliocastro@gmail.com>
#
# SPDX-License-Identifier: MIT
name: Validation
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '**.md'
push:
branches: [main]
jobs:
commitlint:
name: Commit Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: webiny/action-conventional-commits@faccb24fc2550dd15c0390d944379d2d8ed9690e # v1.3.1
typecheck:
needs: commitlint
name: ty Type Checker
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
enable-cache: true
activate-environment: "true"
python-version: "3.13"
- name: Run ty Type Checker
run: |
uv sync
uv run ty check --output-format github
ruff:
needs: commitlint
name: Ruff Python Linter
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Ruff Check
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6
with:
args: 'check --config pyproject.toml'
- name: Ruff Format
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6
with:
args: 'format --check --config pyproject.toml'