name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - name: Show directory structure 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: | python -m pip install --upgrade pip pip install pytest - name: Run tests run: | echo "=== Running tests ===" if [ -d "tests" ]; then pytest tests/ -v --tb=short || echo "Tests failed with exit code $?" else echo "No tests to run" fi