mirror of
https://github.com/NVIDIA/Model-Optimizer.git
synced 2026-10-24 06:35:31 +08:00
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
25 lines
589 B
YAML
25 lines
589 B
YAML
name: Code Quality
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, release/*]
|
|
schedule:
|
|
- cron: "0 0 * * *" # Nightly
|
|
|
|
# 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: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Run code quality checks
|
|
run: pip install tox && tox -e pre-commit-all
|