This commit is contained in:
@@ -17,32 +17,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Show directory structure
|
- name: Install dependencies
|
||||||
run: |
|
|
||||||
echo "=== Directory structure ==="
|
|
||||||
ls -la
|
|
||||||
echo "=== Root files ==="
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Check if tests exist
|
|
||||||
run: |
|
|
||||||
echo "=== Tests directory ==="
|
|
||||||
if [ -d "tests" ]; then
|
|
||||||
ls -la tests/
|
|
||||||
else
|
|
||||||
echo "No tests directory found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Install pytest
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest
|
pip install pytest
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
echo "=== Running tests ==="
|
|
||||||
if [ -d "tests" ]; then
|
if [ -d "tests" ]; then
|
||||||
pytest tests/ -v --tb=short || echo "Tests failed with exit code $?"
|
pytest tests/ -v --tb=short
|
||||||
else
|
else
|
||||||
echo "No tests to run"
|
echo "No tests directory found - skipping"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user