Skip to content

Use codecov uploader action #110

Use codecov uploader action

Use codecov uploader action #110

Workflow file for this run

name: unit-tests
on:
push:
branches: [ master ]
pull_request:
jobs:
pytest:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Rust (stable)
run:
curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install dependencies
run: |
pip install --upgrade pip
pip install setuptools-rust pytest pydicom coverage pytest-cov
pip install git+https://github.com/pydicom/pylibjpeg-data
pip install -e .
- name: Test with pytest
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: |
pytest --cov rle
- name: Send coverage results
if: ${{ success() }}
uses: codecov/codecov-action@v3