Add extensive CI unit tests + torch 2.8 fix #23
Workflow file for this run
This file contains hidden or 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
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-torch27-unit |