mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-05 15:43:35 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user