Skip to content

missing modules?

missing modules? #6

Workflow file for this run

name: Check Carrot Mapper Code Quality
###
# copied from https://github.com/Health-Informatics-UoN/carrot-transform/blob/main/.github/workflows/check.quality.yml
permissions:
contents: read
pull-requests: write
on:
push:
jobs:
ruff:
name: Run Ruff
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Run Ruff Checks
uses: astral-sh/ruff-action@39f75e526a505e26a302f8796977b50c13720edf # v3.2.1
with:
args: "check --select I ."
- name: Run Ruff Format
uses: astral-sh/ruff-action@39f75e526a505e26a302f8796977b50c13720edf # v3.2.1
with:
args: "format --check --diff"
coverage:
name: carrot-mapper coverage
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Run tests
# run the coverage check, but, don't worry about coverage of the tests themselves
# ... or the docker tests ...
run: |
uv run coverage run --omit=tests/* -m pytest --junitxml=pytest.xml
uv run coverage xml
# adds a comment to the PR detailing code coverage
- name: Pytest coverage comment
if: github.event_name == 'pull_request'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: coverage.xml
junitxml-path: pytest.xml
continue-on-error: true