Bump twine from 6.2.0 to 7.0.0 #76
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Run pre-commit (required) | |
| uses: pre-commit/action@v3.0.1 | |
| with: | |
| extra_args: --all-files --show-diff-on-failure | |
| test: | |
| needs: pre-commit | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v10.1.0 | |
| - name: Install dependencies | |
| run: uv sync --group dev --frozen | |
| - name: Run tests with coverage (Ubuntu 3.12) | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | |
| run: uv run --frozen pytest --cov=buscar --cov-report=term-missing --cov-report=xml --cov-report=html | |
| - name: Upload coverage artifact | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | |
| uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: coverage-xml | |
| path: coverage.xml | |
| - name: Upload HTML coverage artifact | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | |
| uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: coverage-html | |
| path: htmlcov | |
| - name: Run tests | |
| if: matrix.os != 'ubuntu-latest' || matrix.python-version != '3.12' | |
| run: uv run --frozen pytest | |
| build: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v10.1.0 | |
| - name: Install dependencies | |
| run: uv sync --group dev --frozen | |
| - name: Build package | |
| run: uv build | |
| - name: Validate wheel import | |
| shell: bash | |
| run: | | |
| uv run --isolated --no-project --with ./dist/buscar-*.whl -- \ | |
| python -c "import buscar; print(buscar.__name__, buscar.__version__)" |