Fix Azure networking failures on FreeBSD by correcting NIC discovery, interface selection, and platform-specific networking behavior. #134
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: Lint | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: 'ci-${{ github.workflow }}-${{ github.ref }}' | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: sh -ex {0} | |
| jobs: | |
| check_format: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| env: [ruff, mypy, pylint, black, isort] | |
| name: Check ${{ matrix.env }} | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_COLOR: 1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Dependencies | |
| run: | | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox | |
| - name: Print version | |
| run: python3 --version | |
| - name: Test | |
| env: | |
| # matrix env: not to be confused w/environment variables or testenv | |
| TOXENV: ${{ matrix.env }} | |
| run: tox | |
| schema-format: | |
| strategy: | |
| fail-fast: false | |
| name: Check json format | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Test format | |
| run: | | |
| tools/check_json_format.sh cloudinit/config/schemas/schema-cloud-config-v1.json | |
| tools/check_json_format.sh cloudinit/config/schemas/schema-network-config-v1.json | |
| tools/check_json_format.sh cloudinit/config/schemas/versions.schema.cloud-config.json | |
| doc: | |
| strategy: | |
| fail-fast: false | |
| name: Check docs | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Install RTD Python Version | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11.9' | |
| - name: Install dependencies | |
| run: | | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox | |
| - name: Spellcheck | |
| run: | | |
| tox | |
| env: | |
| TOXENV: doc-spelling | |
| - name: Build docs | |
| env: | |
| TOXENV: doc | |
| run: | | |
| tox | |
| shell-lint: | |
| name: Shell Lint | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Install ShellCheck | |
| run: | | |
| sudo apt-get update | |
| sudo apt install shellcheck | |
| - name: Run ShellCheck | |
| run: | | |
| shellcheck --color=always ./tools/ds-identify | |
| workflow-lint: | |
| name: GitHub Action and Workflow Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - uses: reviewdog/action-actionlint@83e4ed25b168066ad8f62f5afbb29ebd8641d982 # v1.69.1 | |
| with: | |
| fail_level: any |