This commit is contained in:
@@ -5,30 +5,24 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Debug environment
|
||||
run: |
|
||||
echo "=== Current directory ==="
|
||||
- run: |
|
||||
pwd
|
||||
echo ""
|
||||
echo "=== Directory contents ==="
|
||||
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: |
|
||||
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: |
|
||||
which python3
|
||||
python3 --version
|
||||
ls -la man_card/ 2>/dev/null || ls -la */ 2>/dev/null || ls -la
|
||||
|
||||
- name: Install and test
|
||||
- name: Run tests if tests dir exists
|
||||
run: |
|
||||
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov 2>&1
|
||||
echo "Installation completed"
|
||||
if [ -d tests ]; then
|
||||
pytest tests -v
|
||||
elif [ -d */tests ]; then
|
||||
pytest */tests -v
|
||||
else
|
||||
echo "No tests directory found"
|
||||
fi
|
||||
Reference in New Issue
Block a user