We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ce690 commit 95149c7Copy full SHA for 95149c7
1 file changed
.github/workflows/ci.yml
@@ -11,11 +11,12 @@ jobs:
11
runs-on: ubuntu-latest
12
13
steps:
14
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
15
- name: Set up Python
16
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
17
with:
18
python-version: '3.11'
19
+ cache: 'pip'
20
- name: Install dependencies
21
run: |
22
python -m pip install --upgrade pip
@@ -27,5 +28,9 @@ jobs:
27
28
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
29
- name: Test with pytest
30
- pip install pytest pytest-asyncio
31
- pytest
+ 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