@@ -10,7 +10,7 @@ permissions:
1010 contents : read
1111
1212concurrency :
13- group : commitcheck-frappe -${{ github.event.number }}
13+ group : payments-linter -${{ github.event_name }}-${{ github. event.number || github.run_id }}
1414 cancel-in-progress : true
1515
1616jobs :
@@ -20,12 +20,12 @@ jobs:
2020 if : github.event_name == 'pull_request'
2121
2222 steps :
23- - uses : actions/checkout@v4
23+ - uses : actions/checkout@v6
2424 with :
2525 fetch-depth : 200
26- - uses : actions/setup-node@v4
26+ - uses : actions/setup-node@v6
2727 with :
28- node-version : 16
28+ node-version : 24
2929 check-latest : true
3030
3131 - name : Check commit titles
@@ -39,16 +39,24 @@ jobs:
3939 if : github.event_name == 'pull_request'
4040
4141 steps :
42- - uses : actions/checkout@v4
43- - uses : actions/setup-python@v5
42+ - uses : actions/checkout@v6
43+
44+ - name : Set up Python 3.14
45+ uses : actions/setup-python@v6
4446 with :
45- python-version : ' 3.10'
46- - uses : pre-commit/action@v3.0.0
47+ python-version : ' 3.14'
48+
49+ - name : Install and Run Pre-commit
50+ uses : pre-commit/action@v3.0.0
4751
4852 - name : Download Semgrep rules
4953 run : git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules
5054
55+ - name : Download semgrep
56+ run : pip install semgrep
57+
5158 - name : Run Semgrep rules
52- run : |
53- pip install semgrep==1.90.0
54- semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness
59+ run : semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness
60+
61+ - name : Semgrep for Test Correctness
62+ run : semgrep ci --include=**/test_*.py --config ./semgrep/test-correctness.yml
0 commit comments