Add test and lint workflows #3
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: Run tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| test-containerized: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build test image | |
| run: make test-image | |
| - name: Run lint in container | |
| run: make lint-containerized | |
| - name: Run tests in container | |
| run: make test-containerized | |
| - name: Coverage report | |
| run: make coverage.out | |
| - name: GPU Coverage threshold | |
| run: .github/gpu-scripts/coverage_check.sh gpu-coverage 70 | |
| - name: Gaudi Coverage threshold | |
| run: .github/gpu-scripts/coverage_check.sh gaudi-coverage 70 | |
| - name: QAT Coverage threshold | |
| run: .github/gpu-scripts/coverage_check.sh qat-coverage 70 | |