Skip to content

Add extensive CI unit tests + torch 2.8 fix #24

Add extensive CI unit tests + torch 2.8 fix

Add extensive CI unit tests + torch 2.8 fix #24

Workflow file for this run

name: Unit tests
on:
pull_request:
branches: [main, release/*]
paths:
- ".github/workflows/unit_tests.yml"
- "modelopt/**"
- "tests/**"
- "setup.py"
- "tox.ini"
# Cancel previous runs if new commit is pushed to the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install tox
- name: Run unit tests
run: tox -e py312-torch28-unit