"""
Tests for GitHub Actions workflow verification.

This test file validates that the GitHub Actions CI/CD pipeline
is properly configured and functioning.
"""

import sys
from pathlib import Path

# Add parent directory to path for imports
sys.path.insert(0, str(Path(__file__).parent.parent))

from persuade.github_actions_test import (
    check_github_actions_basic,
    verify_workflows_running,
)


def test_basic_workflow() -> None:
    """Test that basic GitHub Actions workflow check passes."""
    assert check_github_actions_basic()


def test_workflow_status_message() -> None:
    """Test that workflow status message is returned correctly."""
    status = verify_workflows_running()
    assert isinstance(status, str)
    assert len(status) > 0
    assert "GitHub Actions" in status


def test_workflow_verification() -> None:
    """Comprehensive test to verify GitHub Actions integration."""
    # Verify basic functionality
    assert check_github_actions_basic()

    # Verify status reporting
    status = verify_workflows_running()
    assert "functioning correctly" in status
