name: Python Application Tests on: push: branches: [ "main" ] pull_request: branches: [ "*" ] jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install Dependencies run: | python -m pip install --upgrade pip # Install test dependencies pip install pytest pytest-asyncio httpx # Install application dependencies (assuming you have a requirements.txt) # If you don't have one, create it with `pip freeze > requirements.txt` # For now, we'll install the dependencies we know are needed from context pip install fastapi "uvicorn[standard]" paho-mqtt requests - name: Test with pytest run: | pytest