Build #4
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: Build | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: | |
| - ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| # The codegen scripts require Python 3.8 or later. | |
| python-version: "3.8" | |
| - name: Set up Poetry | |
| uses: Gr1N/setup-poetry@v9 | |
| with: | |
| poetry-version: "1.8.3" | |
| - name: Check Poetry version | |
| run: poetry --version | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| poetry install --all-extras | |
| - name: Run linters | |
| run: | | |
| poetry run ni-python-styleguide lint | |
| - name: Generate ni-sync files | |
| run: | | |
| poetry run python scripts/gen_templates.py | |
| - name: Check for files dirtied by codegen | |
| run: git diff --exit-code |