This commit is contained in:
@@ -5,30 +5,24 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Debug environment
|
- run: |
|
||||||
run: |
|
|
||||||
echo "=== Current directory ==="
|
|
||||||
pwd
|
pwd
|
||||||
echo ""
|
|
||||||
echo "=== Directory contents ==="
|
|
||||||
ls -la
|
ls -la
|
||||||
echo ""
|
|
||||||
echo "=== Looking for requirements.txt ==="
|
|
||||||
find . -name "requirements.txt" 2>/dev/null || echo "Not found"
|
|
||||||
echo ""
|
|
||||||
echo "=== Looking for tests directory ==="
|
|
||||||
find . -type d -name "tests" 2>/dev/null || echo "Not found"
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip 2>&1
|
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
||||||
|
|
||||||
- name: Check Python
|
- name: List files
|
||||||
run: |
|
run: |
|
||||||
which python3
|
ls -la man_card/ 2>/dev/null || ls -la */ 2>/dev/null || ls -la
|
||||||
python3 --version
|
|
||||||
|
|
||||||
- name: Install and test
|
- name: Run tests if tests dir exists
|
||||||
run: |
|
run: |
|
||||||
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov 2>&1
|
if [ -d tests ]; then
|
||||||
echo "Installation completed"
|
pytest tests -v
|
||||||
|
elif [ -d */tests ]; then
|
||||||
|
pytest */tests -v
|
||||||
|
else
|
||||||
|
echo "No tests directory found"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user