mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-06 20:44:37 +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,10 +1,10 @@
|
||||
"""Integration tests for the validator script execution."""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
import pytest # pylint: disable=import-error
|
||||
|
||||
@@ -20,7 +20,8 @@ class TestValidatorIntegration:
|
||||
del os.environ[key]
|
||||
|
||||
# Create temporary output file
|
||||
self.temp_output = tempfile.NamedTemporaryFile(mode="w", delete=False)
|
||||
# noqa: SIM115 - 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