File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 88 - cron : ' 0 9 * * 1'
99 workflow_dispatch : # Allows manual triggering
1010 # pull_request: # Run automatically for PRs
11+ push :
12+ branches :
13+ - ' feat/**' # Trigger on feature branches
14+ paths :
15+ - ' tests/cc_server_check.py'
16+ - ' .github/workflows/cc-server-check.yaml'
1117
1218jobs :
1319 check :
14- runs-on : ubuntu-latest
20+ runs-on : ubuntu-latest
1521
1622 steps :
1723 - name : checkout
2026 - name : Set up Python
2127 uses : actions/setup-python@v5
2228 with :
23- python-version : ' 3.12'
29+ python-version : ' 3.12'
2430
2531 - name : Get Runner IP
2632 run : |
@@ -29,17 +35,16 @@ jobs:
2935 - name : Install dependencies
3036 run : |
3137 pip install requests
32-
38+
3339 - name : Run external API tests
3440 id : api_test
3541 run : |
36- python tests/test_fail2ban .py
37-
42+ python tests/cc_server_check .py
43+
3844 - name : Upload test results
3945 if : always()
4046 uses : actions/upload-artifact@v4
4147 with :
4248 name : fail2ban-test-results-${{ github.run_number }}
4349 path : fail2ban_test_results.json
4450 retention-days : 14
45-
You can’t perform that action at this time.
0 commit comments