mirror of
https://github.com/NVIDIA/Model-Optimizer.git
synced 2026-10-26 06:54:04 +08:00
We started seeing this issue in GitHub's free ubuntu-latest runners: `ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device`. Suggested by other GH runners users to remove unnecessary android / dotnet files to avoid the storage issue. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Consolidated GitHub Actions workflow setup into a reusable custom action for improved maintainability and consistency across CI/CD pipelines. * Enhanced release workflow with automated unit testing and artifact upload capabilities. * Streamlined runner initialization by reducing redundant configuration steps. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
28 lines
735 B
YAML
28 lines
735 B
YAML
name: Code Quality
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, release/*, feature/*]
|
|
schedule:
|
|
- cron: "0 0 * * *" # Nightly
|
|
workflow_dispatch: # On-demand
|
|
|
|
# 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:
|
|
code-quality:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: ./.github/actions/ubuntu-setup
|
|
- name: Secret Scanning
|
|
uses: trufflesecurity/trufflehog@v3.90.5
|
|
with:
|
|
extra_args: --results=verified,unknown
|
|
- name: Run code quality checks
|
|
run: pip install tox && tox -e pre-commit-all
|