Skip to content

Commit 00a1f04

Browse files
authored
Merge pull request #2 from ry-ops/fix/ci-error-handling
2 parents 8a9448a + d4ff61e commit 00a1f04

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jobs:
3939
4040
- name: Run tests
4141
run: |
42-
pytest tests/ -v --tb=short || echo "No tests yet"
42+
if find tests -name 'test_*.py' -o -name '*_test.py' 2>/dev/null | grep -q .; then
43+
pytest tests/ -v --tb=short
44+
else
45+
echo "No test files found - skipping"
46+
fi
4347
4448
security:
4549
runs-on: ubuntu-latest
@@ -60,4 +64,4 @@ jobs:
6064
6165
- name: Security scan with bandit
6266
run: |
63-
bandit -r src/aiana -ll || true
67+
bandit -r src/aiana --severity-level medium

0 commit comments

Comments
 (0)