chore: add tests, update docs and actions (#299)

* docs: update documentation

* feat: validate-inputs has it's own pyproject

* security: mask DOCKERHUB_PASSWORD

* chore: add tokens, checkout, recrete docs, integration tests

* fix: add `statuses: write` permission to pr-lint
This commit is contained in:
2025-10-18 13:09:19 +03:00
committed by GitHub
parent d3c2de1bd1
commit 7061aafd35
148 changed files with 5119 additions and 1897 deletions

View File

@@ -1,9 +1,9 @@
"""Tests for the main validator entry point."""
import os
from pathlib import Path
import sys
import tempfile
from pathlib import Path
from unittest.mock import MagicMock, patch
import pytest # pylint: disable=import-error
@@ -23,7 +23,8 @@ class TestValidatorScript:
del os.environ[key]
# Create temporary output file
self.temp_output = tempfile.NamedTemporaryFile(mode="w", delete=False)
# Need persistent file for teardown, can't use context manager
self.temp_output = tempfile.NamedTemporaryFile(mode="w", delete=False) # noqa: SIM115
os.environ["GITHUB_OUTPUT"] = self.temp_output.name
self.temp_output.close()
@@ -181,7 +182,8 @@ class TestValidatorIntegration:
def setup_method(self):
"""Set up test environment."""
self.temp_output = tempfile.NamedTemporaryFile(mode="w", delete=False)
# Need persistent file for teardown, can't use context manager
self.temp_output = tempfile.NamedTemporaryFile(mode="w", delete=False) # noqa: SIM115
os.environ["GITHUB_OUTPUT"] = self.temp_output.name
self.temp_output.close()