Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
REZANANS-yep authored Sep 26, 2024
1 parent 7951f64 commit 57ae7a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ jobs:
- name: Test with pytest
run: |
pytest
# Check if any test files exist before running pytest
if ls test*.py &>/dev/null || ls tests/ &>/dev/null; then
pytest
else
echo "No tests found, skipping pytest."
fi
- name: Run MikroTik IP list conversion script
run: |
Expand Down

0 comments on commit 57ae7a5

Please sign in to comment.