Skip to content

chore(deps): update dependency https://github.com/diamondlightsource/… #1

chore(deps): update dependency https://github.com/diamondlightsource/…

chore(deps): update dependency https://github.com/diamondlightsource/… #1

Workflow file for this run

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

Check failure on line 41 in .github/workflows/_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/_test.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5
=======
uses: codecov/codecov-action@v7
>>>>>>> after updating
with:
name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
files: cov.xml