name: CI on: push: branches: [main] pull_request: branches: [main] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies run: | pip install -e ".[dev]" - name: Run tests run: | if [ -d "tests" ]; then pytest tests/ -v else echo "No tests directory found, skipping test step" fi - name: Lint run: | if command -v ruff &> /dev/null; then ruff check . else echo "ruff not installed, skipping lint step" fi