Skip to content

Add codecov coverage reporting + CI updates #29

Add codecov coverage reporting + CI updates

Add codecov coverage reporting + CI updates #29

Workflow file for this run

name: Unit tests
on:
pull_request:
branches: [main, release/*]
paths:
- ".github/workflows/unit_tests.yml"
- "modelopt/**"
- "tests/unit/**"
- "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: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
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