Skip to content

Add tests for weighted_categorical_crossentropy (#34) #20

Add tests for weighted_categorical_crossentropy (#34)

Add tests for weighted_categorical_crossentropy (#34) #20

Workflow file for this run

name: test
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
default:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
python-version: ["3.10", "3.11", "3.12"] #, "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
python -m pip list
- name: Test for warnings at import time
run: python -Werror -c "import torch_mesmer"
- name: Run test suite
run: |
pytest --durations=10 --pyargs torch_mesmer