Add codecov coverage reporting + CI updates #30
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/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: Run unit tests | |
run: pip install tox && tox -e py312-torch28-unit |