Repository navigation
chore(deps): update dependency https://github.com/diamondlightsource/… #1
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: | ||
| inputs: | ||
| python-version: | ||
| type: string | ||
| description: The version of python to install, default is from .python-version file | ||
| default: "" | ||
| runs-on: | ||
| type: string | ||
| description: The runner to run this job on | ||
| required: true | ||
| env: | ||
| # https://github.com/pytest-dev/pytest/issues/2042 | ||
| PY_IGNORE_IMPORTMISMATCH: "1" | ||
| UV_PYTHON: ${{ inputs.python-version }} | ||
| jobs: | ||
| run: | ||
| runs-on: ${{ inputs.runs-on }} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| # Need this to get version number from last tag | ||
| fetch-depth: 0 | ||
| # For tests that check versionable files | ||
| - name: "fetch-main-branch" | ||
| if: github.ref != 'refs/heads/main' | ||
| run: git branch --track main origin/main | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v8.3.2 | ||
| - name: Run tests | ||
| run: uv run --locked tox -e tests | ||
| - name: Upload coverage to Codecov | ||
| <<<<<<< before updating | ||
| uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5 | ||
| ======= | ||
| uses: codecov/codecov-action@v7 | ||
| >>>>>>> after updating | ||
| with: | ||
| name: ${{ inputs.python-version }}/${{ inputs.runs-on }} | ||
| files: cov.xml | ||