network: add tcpdump() function and use it #2948
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: Static code checkers | |
| on: [push] | |
| permissions: {} | |
| env: | |
| PREK_COLOR: "always" | |
| jobs: | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup | |
| - name: Create a dummy data.py | |
| run: cp data.py-dist data.py | |
| - name: Create a dummy vm_data.py | |
| run: cp vm_data.py-dist vm_data.py | |
| - run: prek -a mypy | |
| pyright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - name: Create a dummy data.py | |
| run: cp data.py-dist data.py | |
| - name: Create a dummy vm_data.py | |
| run: cp vm_data.py-dist vm_data.py | |
| - run: prek -a pyright | |
| ruff: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_COLOR: "1" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - name: Create a dummy data.py | |
| run: cp data.py-dist data.py | |
| - run: prek -a ruff | |
| flake8: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - run: prek -a flake8 | |
| autopep8: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/uv-setup/ | |
| - run: prek -a autopep8 |