Merge pull request #4270 from The-OpenROAD-Project-staging/secure-syn… #2724
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: Lint Tcl code | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| Tclint: | |
| runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - name: Install Dependencies | |
| run: | | |
| python3 -m venv venv | |
| venv/bin/pip install -r .github/requirements/requirements_lock.txt | |
| - name: Lint | |
| run: | | |
| source venv/bin/activate | |
| tclfmt --version | |
| tclfmt --in-place . | |
| git diff --exit-code | |
| tclint . |