Skip to content

Commit 514dfef

Browse files
committed
build: update version_scanner.yml triggers to match repo standards
1 parent e3af193 commit 514dfef

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/version_scanner.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Version Scanner
22

33
on:
4-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
57
schedule:
6-
- cron: '0 0 * * *' # Run daily at midnight UTC
7-
pull_request:
8+
- cron: '0 7 * * 2' # Run weekly on Tuesdays at 7 AM UTC (mirrors main.yml)
9+
workflow_dispatch:
810

911
jobs:
1012
scan:
@@ -16,7 +18,7 @@ jobs:
1618
- name: Set up Python
1719
uses: actions/setup-python@v5
1820
with:
19-
python-version: '3.12'
21+
python-version: '3.14'
2022

2123
- name: Install dependencies
2224
run: |

scripts/version_scanner/tests/unit/test_version_scanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def test_main_stdout(capsys):
513513
assert "=== CSV Output ===" in captured.out
514514
assert "test.py," in captured.out
515515
assert "test," in captured.out
516-
assert '="3.7"' in captured.out
516+
assert '"=""3.7"""' in captured.out
517517

518518
def test_scan_file_truncation_bug(tmp_path):
519519
"""Test that searching for 3.1 does NOT match 3.10 (truncation bug)."""

0 commit comments

Comments
 (0)