Skip to content

Commit 95149c7

Browse files
committed
FIX CI.yml pytest
1 parent 11ce690 commit 95149c7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Set up Python
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.11'
19+
cache: 'pip'
1920
- name: Install dependencies
2021
run: |
2122
python -m pip install --upgrade pip
@@ -27,5 +28,9 @@ jobs:
2728
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
2829
- name: Test with pytest
2930
run: |
30-
pip install pytest pytest-asyncio
31-
pytest
31+
python -m pip install pytest pytest-asyncio
32+
if find . -type f \( -name "test_*.py" -o -name "*_test.py" \) | grep -q .; then
33+
pytest
34+
else
35+
echo "No tests found; skipping pytest."
36+
fi

0 commit comments

Comments
 (0)