v0.1.1 #2
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: Publish to PyPI | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: # Enable manual trigger. | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Mandatory for OIDC. | |
| contents: read | |
| steps: | |
| - name: Checkout (official GitHub action) | |
| uses: actions/checkout@v4 | |
| with: | |
| # Important for versioning plugins: | |
| fetch-depth: 0 | |
| - name: Install uv (official Astral action) | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.7.7" | |
| enable-cache: true | |
| python-version: "3.12" | |
| - name: Set up Python (using uv) | |
| run: uv python install | |
| - name: Vendor SearXNG from the current vendored version | |
| run: ./scripts/clone_searxng.sh CURRENT | |
| - name: Install all dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Run tests | |
| run: uv run pytest | |
| - name: Build package | |
| run: uv build | |
| - name: Publish to PyPI (using uv) | |
| uses: pypa/gh-action-pypi-publish@release/v1 |