Repository navigation
📝 Move the README conventions into their own sections and bump the co… #188
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: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| ci: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", 3.11, 3.12, 3.13, 3.14] | |
| os: [ubuntu-latest] | |
| include: | |
| - python-version: "3.13" | |
| mypy_exclude: "--exclude tests/test_trio_client" | |
| pytest_ignore: "--ignore=tests/test_trio_client.py" | |
| - python-version: "3.14" | |
| mypy_exclude: "--exclude tests/test_trio_client" | |
| pytest_ignore: "--ignore=tests/test_trio_client.py" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: KeisukeYamashita/memcached-actions@v1 | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| - name: Mypy | |
| run: uv run mypy . --exclude .venv ${{ matrix.mypy_exclude }} | |
| - name: Lint with flake8 | |
| run: | | |
| uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=.venv | |
| uv run flake8 . --count --exit-zero --max-complexity=10 --statistics --exclude=.venv | |
| - name: Test with pytest | |
| run: uv run pytest ${{ matrix.pytest_ignore }} |