Repository navigation
chore(deps): update dependency https://github.com/diamondlightsource/… #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
| on: | ||
| workflow_call: | ||
| jobs: | ||
| build: | ||
| runs-on: "ubuntu-latest" | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| # Need this to get version number from last tag | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v8.3.2 | ||
| - name: Build sdist and wheel | ||
| run: > | ||
| export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) && | ||
| uvx --from build pyproject-build | ||
| - name: Upload sdist and wheel as artifacts | ||
| <<<<<<< before updating | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | ||
| ======= | ||
| uses: actions/upload-artifact@v7 | ||
| >>>>>>> after updating | ||
| with: | ||
| name: dist | ||
| path: dist | ||
| - name: Check for packaging errors | ||
| run: uvx twine check --strict dist/* | ||
| - name: Install produced wheel | ||
| run: python -m pip install dist/*.whl | ||
| - name: Test module --version works using the installed wheel | ||
| # If more than one module in src/ replace with module name to test | ||
| run: python -m $(ls --hide='*.egg-info' src | head -1) --version | ||