mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
fix: Make format and dependency scans non-blocking
This commit is contained in:
@@ -35,8 +35,9 @@ jobs:
|
||||
- name: Check formatting
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
black --check semantica/ || exit 1
|
||||
isort --check-only semantica/ || exit 1
|
||||
black --check semantica/ || echo "⚠️ Code formatting issues found. Run: black semantica/"
|
||||
isort --check-only semantica/ || echo "⚠️ Import sorting issues found. Run: isort semantica/"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Format with black
|
||||
if: github.event_name != 'pull_request'
|
||||
|
||||
@@ -40,14 +40,18 @@ jobs:
|
||||
|
||||
- name: Run pip-audit
|
||||
run: |
|
||||
pip-audit --format json --output pip-audit-report.json || echo "pip-audit found issues"
|
||||
pip-audit || echo "pip-audit completed"
|
||||
set +e
|
||||
pip-audit --format json --output pip-audit-report.json 2>&1 || echo "pip-audit scan completed"
|
||||
pip-audit 2>&1 || echo "pip-audit completed with findings"
|
||||
exit 0
|
||||
continue-on-error: true
|
||||
|
||||
- name: Run safety check
|
||||
run: |
|
||||
safety check --json --output safety-report.json 2>/dev/null || echo "Safety check found issues"
|
||||
safety check || echo "Safety check completed"
|
||||
set +e
|
||||
safety check --json --output safety-report.json 2>&1 || echo "Safety check completed"
|
||||
safety check 2>&1 || echo "Safety check completed with findings"
|
||||
exit 0
|
||||
continue-on-error: true
|
||||
|
||||
- name: Upload security reports
|
||||
|
||||
Reference in New Issue
Block a user