Running tests as plaresmedima has pushed changes #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Actions Configuration for integrated testing using pytest | |
name: Test package | |
run-name: "Running tests as ${{ github.actor }} has pushed changes" | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install packages | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r tests/requirements.txt | |
pip install . | |
pip list | |
- name: Install dcmri | |
run: | | |
pip install -e .[extensions] | |
- name: Test with pytest | |
run: pytest --cov=dcmri --cov-report=xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |