Release Distributables #21
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: Release Distributables | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build-n-upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| - name: Lint with ruff | |
| run: uv run ruff check src | |
| - name: Run unit tests | |
| run: uv run pytest --cov=deltadefi --cov-report=xml | |
| - name: Build distributables | |
| run: uv build | |
| - name: Build and publish to PyPI | |
| run: uv publish --username __token__ --password ${{ secrets.PYPI_TOKEN }} |