Run linting on one machine only; use new uv dev deps format #69
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 package | |
| on: [push] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| - name: Ruff checks | |
| run: uv run ruff check . | |
| - name: Ruff format check | |
| run: uv run ruff format --check | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| - name: Pyright type check | |
| # Don't fail on errors yet | |
| run: uv run pyright filesender || true | |
| - name: Test CLI help | |
| run: filesender --help |