update pytest config to add xdist / timeouts #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: uv pip install --system -e ".[dev]" | |
| - name: Install pre-commit | |
| run: uv pip install --system pre-commit | |
| - name: Run pre-commit | |
| run: SKIP=mypy pre-commit run --all-files | |
| - name: Run mypy | |
| run: mypy src/ tests/ --exclude 'tests/benchmarks/appworld/' | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: 1 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: uv pip install --system -e ".[dev]" | |
| - name: Run unit tests | |
| run: pytest tests/unit/ -v -p no:warnings | |
| - name: Run integration tests | |
| run: pytest tests/integration/ -v -p no:warnings |