Skip to content

added label smooth, noise reg, generation methods #208

added label smooth, noise reg, generation methods

added label smooth, noise reg, generation methods #208

name: Unit tests for custom PyTorch operations
on:
push:
paths:
- "testing/**"
- "adell_mri/**"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip uv
uv pip install --python ruff pytest
if [ -f testing/requirements.txt ]; then uv pip install --python -r testing/requirements.txt; fi
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff . --select=E9,F63,F7,F82 --show-source
- name: Test with pytest
run: |
pytest testing