Skip to content

Merge pull request #122 from jamesobutler/python-version-update #156

Merge pull request #122 from jamesobutler/python-version-update

Merge pull request #122 from jamesobutler/python-version-update #156

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.10",
"3.11",
"3.12",
"3.13"
]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: "0.7.2"
- name: Install dependencies
run: uv sync
- name: Lint with flake8
run: uv run flake8 src tests --exclude=.venv,build,.eggs
- name: Check type hints with mypy
run: uv run mypy src tests
- name: Test with pytest
run: uv run pytest --cov=dicomweb_client --cov-fail-under=65 tests