Update workflow

This commit is contained in:
Xuwznln
2025-09-03 11:01:27 +08:00
parent e31c924614
commit 544dbe128f
2 changed files with 50 additions and 26 deletions

View File

@@ -58,12 +58,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install pytest
pip install -e .[dev]
- name: Test with pytest
run: |
pytest
pytest -v
# Step 3: ROS2 integration test
test-with-ros2:
@@ -122,10 +122,7 @@ jobs:
- name: Install security tools
run: |
python -m pip install --upgrade pip
pip install bandit "safety>=3.0.0" "typer<0.12.0" "marshmallow<4.0.0"
- name: Run bandit security scan
run: bandit -r msgcenterpy/ -f json -o bandit-report.json
pip install "safety>=3.0.0" "typer<0.12.0" "marshmallow<4.0.0"
- name: Run safety security scan
run: safety check --output json > safety-report.json
@@ -135,7 +132,6 @@ jobs:
with:
name: security-reports
path: |
bandit-report.json
safety-report.json
if: always()