chore: fix type checking and CI workflow (#2)

This commit is contained in:
2026-02-17 23:58:33 +02:00
committed by GitHub
parent 36f25aaff4
commit 07ab166750
6 changed files with 12 additions and 14 deletions

View File

@@ -3,13 +3,13 @@
from __future__ import annotations
from datetime import datetime
from enum import Enum
from enum import StrEnum
from typing import Any
from pydantic import BaseModel, Field
class ActionType(str, Enum):
class ActionType(StrEnum):
"""Type of action reference."""
LOCAL = "local"
@@ -72,7 +72,7 @@ class ActionManifest(BaseModel):
is_javascript: bool = False
class PermissionLevel(str, Enum):
class PermissionLevel(StrEnum):
"""Permission level."""
NONE = "none"
@@ -134,7 +134,7 @@ class JobMeta(BaseModel):
name: str
runs_on: str | list[str]
needs: list[str] = Field(default_factory=list)
if_condition: str | None = Field(None, alias="if")
if_condition: str | None = Field(default=None, alias="if")
permissions: Permissions | None = None
environment: str | dict[str, Any] | None = None
concurrency: str | dict[str, Any] | None = None