chore: dependency refresh and compatibility/docs alignment (aiodns 4.x, tests, CI) #494
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
| # Install dependencies, lint, and run tests across the supported Python | |
| # matrix using uv (replaces Poetry as of #105). | |
| name: build & test | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv and set the Python version | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| version: "0.11.13" | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install project + dev dependencies (includes ruff) | |
| run: uv sync --locked --dev | |
| - name: Lint with ruff | |
| run: | | |
| # stop the build if there are Python syntax errors or undefined names | |
| uv run ruff check . --select=E9,F63,F7,F82 --output-format=github | |
| # comprehensive linting with GitHub integration | |
| uv run ruff check . --output-format=github | |
| - name: Check code formatting with ruff | |
| run: uv run ruff format --check . | |
| - name: Test with pytest | |
| run: uv run pytest tests/ -v --cov=proxybroker --cov-report=term-missing --cov-fail-under=60 |