You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
352 B
11 lines
352 B
import pathlib
|
|
|
|
|
|
def test_schedule_workflow_exists():
|
|
path = pathlib.Path(".github/workflows/mindmodel-schedule.yml")
|
|
assert path.exists(), f"Expected {path} to exist"
|
|
|
|
text = path.read_text(encoding="utf-8")
|
|
# ensure the file is a GitHub Actions workflow that declares a schedule
|
|
assert "on:" in text
|
|
assert "schedule" in text
|
|
|