ci: add GitHub Actions workflow with ruff and E2E tests
- Add CI workflow running Ruff lint/format checks - Run full E2E cycle (Docker Compose + Playwright + tests) - Refactor code formatting to satisfy Ruff (line breaks, readability) - Use sys.executable in tests for interpreter-agnostic execution https://chatgpt.com/share/694a7f81-d96c-800f-88cb-7b25b4cdfe1a
This commit is contained in:
@@ -30,12 +30,18 @@ class TestMatomoBootstrapE2E(unittest.TestCase):
|
||||
"e2e-test-token",
|
||||
]
|
||||
|
||||
token = subprocess.check_output(
|
||||
cmd,
|
||||
env={**os.environ, "PYTHONPATH": "src"},
|
||||
).decode().strip()
|
||||
token = (
|
||||
subprocess.check_output(
|
||||
cmd,
|
||||
env={**os.environ, "PYTHONPATH": "src"},
|
||||
)
|
||||
.decode()
|
||||
.strip()
|
||||
)
|
||||
|
||||
self.assertRegex(token, r"^[a-f0-9]{32,64}$", f"Expected token_auth, got: {token}")
|
||||
self.assertRegex(
|
||||
token, r"^[a-f0-9]{32,64}$", f"Expected token_auth, got: {token}"
|
||||
)
|
||||
|
||||
api_url = (
|
||||
f"{MATOMO_URL}/index.php"
|
||||
|
||||
Reference in New Issue
Block a user