add pass #94
Workflow file for this run
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: Python | |
| on: | |
| push: | |
| workflow_dispatch: | |
| env: | |
| LINT_PYTHON_VERSION: 3.11 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Set up Python ${{ env.LINT_PYTHON_VERSION }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.LINT_PYTHON_VERSION }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --dev | |
| - name: ruff check | |
| run: uv run ruff check . | |
| # - name: mypy check | |
| # run: uv run mypy django_unicorn | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| django-version: ["5.2", "6.0"] | |
| exclude: | |
| - python-version: "3.10" | |
| django-version: "6.0" | |
| - python-version: "3.11" | |
| django-version: "6.0" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras --dev | |
| uv pip install django==${{ matrix.django-version }} | |
| - name: Fast tests | |
| run: uv run pytest -m 'not slow and not playwright' | |
| - name: Slow tests | |
| run: uv run pytest -m 'slow' |