Skip to content

Update pydicom

Update pydicom #180

Workflow file for this run

name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
types: [opened, synchronize, reopened, edited, ready_for_review]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
pydicom-version: ["pydicom-latest"]
include:
- python-version: "3.10"
pydicom-version: "pydicom==2.4.0"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ hashFiles('setup.py') }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager -e '.[image, dvhinterpolation, volume, doseinterpolation]'
pip install coverage
pip install coveralls
pip install codecov
- name: Force pydicom version if needed
if: startsWith(matrix.pydicom-version, 'pydicom==')
run: |
pip install -U "${{ matrix.pydicom-version }}"
- name: Run tests via coverage
run: |
coverage run --source=dicompylercore -m unittest discover -v
coverage xml
- name: Upload coverage if the job has succeeded
if: ${{ success() }}
run: |
coveralls --service=github
codecov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}