34 lines
918 B
YAML
34 lines
918 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Debug environment
|
|
run: |
|
|
echo "=== Current directory ==="
|
|
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
|
|
run: |
|
|
python3 -m pip install --upgrade pip 2>&1
|
|
|
|
- name: Check Python
|
|
run: |
|
|
which python3
|
|
python3 --version
|
|
|
|
- name: Install and test
|
|
run: |
|
|
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov 2>&1
|
|
echo "Installation completed" |