Skip to content

fix: dev: Convert contour data to numpy array for consistency #186

fix: dev: Convert contour data to numpy array for consistency

fix: dev: Convert contour data to numpy array for consistency #186

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"]
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python dependencies
uses: actions/cache@v3
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, voxelization]'
pip install coverage
- name: Run tests via coverage
run: |
coverage run --source=dicompylercore -m unittest discover -v
coverage xml
- name: Run codecov-action
if: ${{ success() }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run codacy-coverage-reporter
if: ${{ success() }}
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml