#4017: Replace static device APIs to query num available devices and num availale pcie devices with standalone host APIs #346
Workflow file for this run
This file contains 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: "[post-commit] all - Static checks, linters etc." | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
workflow_call: | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
check-syseng-assets-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CHECKOUT_TOKEN }} | |
- name: Check asset download script | |
env: | |
GITHUB_TOKEN: ${{ secrets.CHECKOUT_TOKEN }} | |
run: | | |
cd infra/machine_setup | |
./scripts/download_public_machine_setup_assets.sh | |
check-syseng-assets-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CHECKOUT_TOKEN }} | |
- name: Check asset download script | |
env: | |
GITHUB_TOKEN: ${{ secrets.CHECKOUT_TOKEN }} | |
run: | | |
cd infra/machine_setup | |
./scripts/download_public_machine_setup_assets.sh -r | |
check-spdx-licenses: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CHECKOUT_TOKEN }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: 'pip' | |
cache-dependency-path: infra/requirements-infra.txt | |
- name: Install infra deps | |
run: python -m pip install -r infra/requirements-infra.txt | |
- name: Check SPDX licenses | |
run: python -m check_copyright --verbose --dry-run --config ./check_copyright_config.yaml . | |
check-metal-kernel-count: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CHECKOUT_TOKEN }} | |
- name: Check kernel count in base metal is less than maximum | |
run: if (( $(find tt_metal/kernels/ -type f | wc -l) > 7 )); then exit 1; fi | |
check-black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CHECKOUT_TOKEN }} | |
- uses: psf/[email protected] |