@@ -119,20 +119,23 @@ jobs:
119119 fi
120120
121121 - name : Fail job on critical findings
122- if : steps.bandit-review.outputs.FAIL_JOB == 'true'
122+ if : inputs.run_tests == true && steps.bandit-review.outputs.FAIL_JOB == 'true'
123123 run : |
124124 echo "❌ Failing workflow due to HIGH or MEDIUM severity security issues found by bandit."
125125 exit 1
126126
127127 - name : Run unit and integration tests with coverage
128+ if : inputs.run_tests == true
128129 run : |
129130 uv run pytest -m "not system_local and not system_external" --cov=api --cov=api_client --cov=shared --cov-report=xml --cov-report=html --cov-report=term-missing --junitxml=pytest-report.xml
130131
131132 - name : Run system_local tests (testcontainers)
133+ if : inputs.run_tests == true
132134 run : |
133135 uv run pytest -m "system_local" --no-cov
134136
135137 - name : Upload coverage to Codecov
138+ if : inputs.run_tests == true
136139 uses : codecov/codecov-action@v4
137140 with :
138141 file : ./coverage.xml
@@ -142,7 +145,7 @@ jobs:
142145
143146 - name : Upload test results
144147 uses : actions/upload-artifact@v4
145- if : always()
148+ if : inputs.run_tests == true && always()
146149 with :
147150 name : test-reports-${{ matrix.python-version }}
148151 path : |
@@ -152,7 +155,7 @@ jobs:
152155 bandit-report.json
153156
154157 - name : Create quality summary
155- if : always()
158+ if : inputs.run_tests == true && always()
156159 run : |
157160 echo "## 📊 Code Quality Summary" >> $GITHUB_STEP_SUMMARY
158161 echo "| Tool | Status | Details |" >> $GITHUB_STEP_SUMMARY
0 commit comments